I try to use PayPal Smart Button to purpose payment on a website.
I first created a plan, I got its ID, and I activated it, via commands with the API and the PayPal SDK in PHP.
The plan appears to be active.
<script src="https://www.paypal.com/sdk/js?client-id=sb-key&vault=true&disable-funding=card"></script>
<script>
paypal.Buttons({
env: 'sandbox',
createSubscription: function(data, actions) {
return actions.subscription.create({
'plan_id': 'P-85G86700MN...223CGEJWTI'
});
},
onApprove: function(data, actions) {
alert('You have successfully created subscription ' + data.subscriptionID);
}
}).render('#paypal-button-container');
</script>
When I click on the PayPal button to pay. I get this error: RESOURCE_NOT_FOUND
I don't know what it all means, and people who have had the same problem have not received support.