How to change the Subject in the PayPal button API, when I make a payment?
mmartinez887
New Community Member
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Oct-15-2019
03:11 PM
I have a paypal button to make payments from my website to paypal, everything is done successfully, but the payment issue that comes to my account is:
Receipt for Your Payment to test facilitator's Test Store
and need change it, my code follows:
<!-- Set up a container element for the button --> <div id="paypal-button-container"></div> <!-- Include the PayPal JavaScript SDK --> <script src="https://www.paypal.com/sdk/js?client-id=sb¤cy=USD"></script> <script> // Render the PayPal button into #paypal-button-container paypal.Buttons({ // Set up the transaction createOrder: function(data, actions) { return actions.order.create({
purchase_units: [{
amount: {
value: '0.01' } }] }); }, onApprove: function(data, actions) { return actions.order.capture().then(function(details) { // Show a success message to the buyer
alert('Transaction completed by ' + details.payer.name.given_name + '!'); }); } }).render('#paypal-button-container'); </script>
Labels:
- Labels:
-
Payments REST APIs
0 REPLIES 0
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- When clicking on a payment button generates error: Unexpected token ... in PayPal Payments Standard
- How to Pay Using pay with venmo? in PayPal Payments Standard
- Authorization being forced prior to Paypal Button becoming available. in PayPal Payments Standard
- How to redirect user to paypal checkout form for card payment? in PayPal Payments Standard
- Issue with Venmo Button Not Showing in Sandbox Environment