Hello team, I have used custom paypal smart button script in my website for payment. Below is the script which i used in my code (using HTML & Javascript) <script src="https:www.paypal.com/sdk/js?client-id=AQW2EB1gdF4t2kQIuJfTirEDneMyxJkDEDTPfIs7YM3BPNuNEjVnIsANPv0vKmczSOH84lLl5DyXzmgX&intent=capture¤cy=AUD" data-sdk-integration-source="button-factory"></script> <script> paypal.Buttons({ style: { shape: 'rect', color: 'gold', layout: 'horizontal', label: 'paypal', tagline: false }, createOrder: function(data, actions) { return actions.order.create({ purchase_units: [ { reference_id: "PUHF", description: "Some description", custom_id: "Something7364", soft_descriptor: "Great description 1", amount: { currency_code: "AUD", value: '0.50', breakdown: { item_total: { currency_code: "AUD", value: '0.50' } } }, items: [ { name: "Item 1", description: "The best item ever", sku: "xyz-2654", unit_amount: { currency_code: "AUD", value: '0.50' }, quantity: "1" } ], } ] }); }, onApprove: function(data, actions) { return actions.order.capture().then(function(data) { window.location.href = "https:sweetlifepartner.com/index.php/paypal/callback?plan_id=2&amount=0.50&paymentID="+data.paymentID+"&payerID="+data.payerID+"&token="+data.paymentToken+"&pid="; }); } }).render('#paypal-button-container'); </script> Using this script i am able to see button on my website but when customer ,login from their account it will not allow them to pay and give below error {"ack":"contingency","contingency":"UNPROCESSABLE_ENTITY","data":{"name":"UNPROCESSABLE_ENTITY","details":[{"issue":"INSTRUMENT_DECLINED","description":"The instrument presented was either declined by the processor or bank, or it can't be used for this payment."}],"message":"The requested action could not be performed, semantically incorrect, or failed business validation.","debug_id":"4b006abc64a4a","links":[{"href":"https://developer.paypal.com/docs/api/orders/v2/#error-INSTRUMENT_DECLINED","rel":"information_link","method":"GET"},{"href":"https://www.paypal.com/checkoutnow?token=2U7815480S142441H","rel":"redirect","method":"GET"}]},"meta":{"calc":"4b006abc64a4a","rlog":"rZJvnqaaQhLn%2FnmWT8cSUueWscmrtUHe5Y1Bd%2FeqyvyOTq66rSXAcgw%2BjwUfLWoirTjSF3Dcz2NbXl4NQOgVH4Dd83gDQNrk_1722bbd045e"},"server":"a0xUhe-G7NnhtNvFh6tZVTvonVvjcCeSj-DOTwvlZarPdE_Q7U81Csbi_a2on4BbM8z7QLdUkJbWqDl1Ia560rlHd0CRSbWmazR-x72NODb2NQ2-uk8myDrfSIKI4wxnGjiXhuXstlS1VwEQTVVKVlUcJtq0LaapN1LTzmV-dDmuoP9fNL26_Z8K3qQU9NSNxCSSuaxV1HwpZhxwOJr1LuRe_jD-zDkpvXsgqH3601DvAITDwEovDAsGWoVPBvjuz-gHPuW0L_K0FWjJ3nRoj0"} I checked using by capture/authorize both method but its not working. Please help me resolve it and let me know if i missed any step. Thanks in advanced.
... View more