Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to generate the checkout URL on server side? #34

Open
dariusmann opened this issue Jan 18, 2023 · 1 comment
Open

Is there a way to generate the checkout URL on server side? #34

dariusmann opened this issue Jan 18, 2023 · 1 comment

Comments

@dariusmann
Copy link

We want to implement the amazon payment checkout v2 in our flutter mobile app.

We are blocked by the fact, that we need to render the checkout button with JS: https://developer.amazon.com/es/docs/amazon-pay-checkout/add-the-amazon-pay-button.html

I expect this JS SDK to render a button with a URL (ready configured) which leads to the checkout.

We cannot do that because we are in a flutter context.

Is there a way to generate this URL on server side with this SDK or with another SDK?

If not, how to actually integrate the ama checkout v2 in mobile?

@mkreusch
Copy link

@dariusmann
Amazon Pay does always require browser based interaction with the user. The only feasible way I see for your project is to transfer the logic into a small WebView workflow. As you will need to redirect the user to the Amazon Pay URL, you will need it anyway and therefore I'd recommend putting the whole logic into it.
Perhaps good to know for you: With the initCheckout method of the JS SDK you might start the checkout without actually displaying the button to the user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants