Git Product home page Git Product logo

amazon-pay-sdk-samples's Introduction

Amazon Pay SDK samples

This repository provides sample code in various languages to demonstrate the use of the Amazon Pay SDKs.

https://amzn.github.io/amazon-pay-sdk-samples/

Please be aware that this code provides US-only examples. If you want to use it in other regions, please adapt the endpoints and currency. Detailed information can be found in our integration guides.

amazon-pay-sdk-samples's People

Contributors

bjguillot avatar dbrent-amazon avatar hyandell avatar islandskater43 avatar lpostiglione avatar nicklera1 avatar samir-khoja avatar schroffd avatar seanevan avatar tarishah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

amazon-pay-sdk-samples's Issues

How to Collect Payment?

Hello,

I installed the php version of "login-and-pay-with-amazon-sdk-samples" (SampleCartDemo > OneTimePayments) and it seems to work fine (sandbox).

I can see the transactions in my amazony pay account (orders):

Total: 19.95
Charged: 0.00

All transactions are successfull but no real charge has be done.
I have to click on "Collect Payment" at any transaction in order to charge/get the amout from customer. But I do not want to do this manually.

How can the php code be changed/extended so that all transactions are charged/collected directly within the php code (e.g. in ConfirmPaymentAndAuthorize.php)?

Thank you.

Transactions from made from a billing agreement should return the billing agreement id

Hopefully this is the correct place for this bug because I cannot find a good place to report it. I have opened a case through amazon pay help, but the customer service is not well trained on amazon pay issues.

I recently had a case where a customer changed his email address with amazon pay, and I could not find his billing agreement on my end because of this. The amazon pay seller central does not show us a list of customers and their billing agreements like paypal does, and amazon customer service cannot look up the billing agreement that an Amazon Reference ID came from either. The only work around I can see, is to use the billing agreement ID as the Seller Order ID when making the transaction so that we can know this information looking at Manage Transactions in seller central. It seems like an easy thing for amazon to mirror how paypal shows us a list of our customers and their billing agreements.

Thanks.

Omit shipping address

For digital goods there is no shipping address necessary.

Is it possible to omit shipping address?

After login the customer should only select the payment method (VISA, Mastercard, ...) but NOT the shipping address (the shipping address should not be shown to the customer).

How can I do this?
Thank you.

Recurring payment frequency

I'm stuck on amazon subscription issues with the amount and dates currently as in amazon it starts the subscription from current date default for 1 month. and also taking complete amount as subscription amount which include one time setup fee and addon fee.

Can you please help to pass frequency object to given sdk

The Wallet widget should use the Address Book's order reference Id

Your JavaScript code example at https://amzn.github.io/amazon-pay-sdk-samples/set.html is incorrect. It doesn't pass the order reference id from the Address Book widget to the Wallet widget which could result in PaymentPlanNotSet error later in the payment processing.

The Wallet widget should be initialised with the following property:

new OffAmazonPayments.Widgets.Wallet({
...
// Assign the same Order Reference ID you created in the address widget to the wallet widget as well. 
amazonOrderReferenceId: orderReferenceID,
...
}).bind("walletWidgetDiv");

Seller Details not provided

I testet the order process about hundred times and I can not find out why sometimes the seller details are not provided in Amazon Seller Central - Payment Details.

What could be the reason why sometimes the seller details are empty (not provided)? I am using the same code without changes.

Is this a browser cache problem? If so how to solve it?

I also found out that after the buyer loggs in and the shipping addresses and the payments methods are shown (for selection) after 3 seconds the payments methods are loaded again (you can see flash it).

I have 4 different test accounts for testing payments. I login with first acount and test the payment, then login with next account and test payment. Is this a probem?

This also happens in the demo example SampleCartDemo - OneTimePayments.
Is this reloading the reason why sometimes the seller details are not provided in seller central?

What else could be a reason why seller details are not provided (the sourcecode is always the same):
The session variables? The access token? What else? How to solve it?
Thank you.

login window not appearing in popup (despite being set to true)

I integrated Amazon Pay into my site a few months ago and it was working perfectly. Now for some reason, when a user clicks the "Amazon Pay" button, the login window no longer appears inside a popup window, but rather opens a new tab.

The code sample in this repo also suffers this same problem now too (click the gold "Amazon Pay" button):
https://amzn.github.io/login-and-pay-with-amazon-sdk-samples/simple.html

Note: the 'popup:true' setting is set on both on my site and in the sample code provided here.

Login with Amazon callback/event if popup is closed

I'm nearly finished wiring Amazon Pay without the Address Book widget: https://pay.amazon.com/us/developer/documentation/lpwa/201953690

I am using the sandbox js.

Is there any kind of callback or event I can listen on if the end user closes the login popup? I thought maybe the next argument of authorize might do what I need, but it doesn't appear to be getting anything.

Barring that, what's the best practice for this scenario, and is it documented anywhere?

Thanks!

Nodejs Payment

Hello,

Are there any plans of adding a Node.js payment example? Currently there is only a login one whereas the other languages contain checkout code as well.

Thank you

C# Sample doesn't show live responses

I ran the demo for one time payments. The widgets are displayed correctly on the SetPaymentDetails.aspx page, but the live responses are not shown. I don't see that the MakeApiCallAndReturnJsonResponse method is being called.

Please advise.

Button and other widgets for React

Hi Amazon dev team.
Do you have any React library to add button, address book and wallet widgets in declarative React.js style rather then binding them to some exiting element ids?
PayPal has this functionality:)

Error handling code

I need simple error handling code for the follwing files (SampleCartDemo/OneTimePayments):

index.php
SetPaymentDetails.php
ConfirmPaymentAndAuthorize.php

e.g. here:

            onError: function (error) {
                // something bad happened
            }

The error code and the error text should be shown to the user and should be written to a file.

The user should be able to restart the pay process.

The AuthorizeResult should be examined and if there an AuthorizationStatus that tells us, that the payment was not successfull collectet, the user should not get his ordered goods.

So where I can find example code for all this error handling?
Thank you.

CSharp example has issue

The AddressBook and Wallet widgets fail to load in the C# OneTimePayments example. They both display "We're sorry, but there's a problem processing your payment from this website. Please contact the seller for assistance." And the error message returned in the onError handlers is "InvalidOrderReferenceId The OrderReferenceID S01-5932202-9814938 is invalid."

All app settings appear correct and all dependencies are installed. Any ideas why this example code doesn't work?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.