cancel
Showing results for 
Search instead for 
Did you mean: 

I can not integrate monthly subscription billing button

Options
Go to solution
harshadakhire
Contributor
Posted on

hii,

I have created simple html for monthly subscription button

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="BAHVN3ASPS5Y8">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribe_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

when i created this actual form action was " https://www.paypal.com/cgi-bin/webscr"  bt i cannot used this for for testing as my buyer has account of sandbox so i changed it.

when i click button it show me error "PayPal cannot process this transaction because of a problem with the seller's website. Please contact the seller directly to resolve this problem.

I search for that and made changes for charset UTF-8. Still it is showing me same error.

I just stuck here.Please any one can guide me? 

Please send sample code for recurring billing / monthly subscription. I have already gone through all samples but not found any detail information for canceling/stopping  monthly subscription.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Solved

I can not integrate monthly subscription billing button

Options
Go to solution
MTS_Justin
Moderator
Hello,

You cannot simply change the URL and use the button, as this is a hosted button and therefore the code for the button is hosted within the environment where you created the button.

If you want a button to work in sandbox environment, login to a sandbox account and create the button from within that account, the same applies to a button for a live account, login to the live account and create the button from within that account. You cannot modify the code of a hosted button after it has been created.

The alternative to this, so to not host the button at PayPal (step 2 of the process, save button to PayPal), but if you choose this option the button code will not be protected, meaning anyone could view the code for your site and see / modify the value for the amount for example.

Hosted buttons should be your preferred option.

Was my post helpful? If so, please give me a kudos!

View solution in original post

1 REPLY 1
Solved

I can not integrate monthly subscription billing button

Options
Go to solution
MTS_Justin
Moderator
Hello,

You cannot simply change the URL and use the button, as this is a hosted button and therefore the code for the button is hosted within the environment where you created the button.

If you want a button to work in sandbox environment, login to a sandbox account and create the button from within that account, the same applies to a button for a live account, login to the live account and create the button from within that account. You cannot modify the code of a hosted button after it has been created.

The alternative to this, so to not host the button at PayPal (step 2 of the process, save button to PayPal), but if you choose this option the button code will not be protected, meaning anyone could view the code for your site and see / modify the value for the amount for example.

Hosted buttons should be your preferred option.

Was my post helpful? If so, please give me a kudos!

View solution in original post

Haven't Found your Answer?

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