go-live failure
conym18
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Sep-16-2019
06:42 AM
Hello,
when i change the client-id into the live client-id, the javascript will not work.
paypal.Buttons({
createOrder: function(data, actions) {
return actions.order.create({
purchase_units: [{
amount: {
value: '0.01',
currency_code: 'EUR'
},
description: 'test'
}]
});
},
style: {
layout: 'vertical',
color: 'silver',
shape: 'rect',
label: 'paypal',
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(details) {
//alert('Bestellung erfolgreich ' + details.payer.name.given_name);
window.location.href = 'fertig.php?amount=rwar';
return fetch('/paypal-transaction-complete', {
method: 'post',
headers: {
'content-type': 'application/json'
},
body: JSON.stringify({
orderID: data.orderID
})
});
});
}
}).render('#paypal-button-container');
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
- payment failures on my website in PayPal Payments Standard
- Intermittent error when refunding: [L_LONGMESSAGE0] = Security header is not valid in NVP/SOAP APIs
- Error code 15005 & 10626 Clarification in NVP/SOAP APIs
- Subscription renewal alerts and failures in REST APIs
- Access Token Working to Generate Client Token but not Orders in REST APIs