use javascript api to open checkout instead of the affirm button

@mannygit I updated this so we can use it as the direct integration merchant