PayPal Subscribe Issue

henryparker5
New Community Member

I'm trying to set up a paypal subscribe button to go on my wix site. I've generated the code and pasted it in the Wix HTML iframe developer, and the buttons have appeared as expected. When I publish my site and make it live, however, when either the paypal subscribe buttons or the debit card button below are clicked, it briefly looks like it's opening up the right pop-up, but then it quickly closes, apparently doing nothing. The code paypal generated for me is below. The wix site page I have been testing it on is: https://www.peacebypiecevegans.com/step-2-one-off-box

 

Any help would be amazing!

 

<div id="paypal-button-container"></div> <script src="https://www.paypal.com/sdk/js?client-id=AdXv8GH48PQpLkrq4cuBPyZo7a0q4oRbnNAtgOFc9SdQHDcZgHnYhxxAEZrg..." data-sdk-integration-source="button-factory"></script> <script> paypal.Buttons({ style: { shape: 'rect', color: 'gold', layout: 'vertical', label: 'subscribe', }, createSubscription: function(data, actions) { return actions.subscription.create({ 'plan_id': 'P-58S63930YV394891BL4AH74A' }); }, onApprove: function(data, actions) { alert(data.subscriptionID); } }).render('#paypal-button-container'); </script>

Login to Me Too
1 REPLY 1

Debugg3r
New Community Member

most  probably your plan id or client id is wrong. I had same issue yesterday, I  realised that my plan id was wrong.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.