Will this Button integrate into existing PHP?

A modification was created to a PHP-website-video-script, where users can buy credits to use to pay-to-view the web site’s videos.
It works successfully with Paypal, and worked successfully with AmazonFPS, but Amazon ended their AmazonFPS.
So, I’m trying to figure out how to get my existing script to work with PayWithAmazon.

I’ve added a sandbox PayWithAmazon button to test.
But I don’t know how to get that to work with the existing PHP-website-video-script modification (which worked successfully with AmazonFPS).

I’ve uploaded the PayWithAmazon folder from:
https://github.com/amzn/login-and-pay-with-amazon-sdk-php?ld=NSGoogle,

but I don’t know if that folder works with the sandbox button - code below.

This link says "copy and paste-integration for fixed price items (which is what I have):
https://payments.amazon.com/documentation/express/201747030

But, I’m trying to get the button to work with the PHP-website-video-script modification (which worked successfully with AmazonFPS), so I don’t know if I instead need “custom integration”, as outlined here: https://payments.amazon.com/documentation/express/201728540

I guess it boils down to, to begin with, I’m trying to determine, will the PayWithAmazon sandbox button work with what I currently have? Or do I need a different Amazon button?

<script async src="https://static-na.payments-amazon.com/OffAmazonPayments/sandbox/js/Widgets.js"></script>
<div
data-ap-widget-type="expressPaymentButton"
data-ap-signature="hd98784fjhf=-09*&^75fytuyu(*_90-i"
data-ap-seller-id="ABCDEFGHIJKLM"
data-ap-access-key="AZYXTUVBGAD6"
data-ap-lwa-client-id="amzn1.application-oa2-client.6o;hcoiekjfojce89043-43i"
data-ap-return-url="https://www.....com/amazon_success.php"
data-ap-currency-code="USD"
data-ap-amount="1.00"
data-ap-note="Test"
data-ap-shipping-address-required="false"
data-ap-payment-action="AuthorizeAndCapture"
>
</div>

Any help will be appreciated.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.