paypal javascript button - how to specify browser success url? -


i prototyping payment via paypal , stuck on how specify url browser should redirect/link after payment.

<script src="paypal-button.min.js?merchant=stan-facilitator@merkwelt.com"      data-button="buynow"      data-name="new bot"      data-quantity="1"      data-amount="0.99"      data-shipping="0"      data-tax="0"      data-callback="http://www.merkwelt.com/people/stan/paypal/success.html"      data-env="sandbox" ></script> 

i aware difference between callback (for reporting) , return url (what happens in browser). browser redirect site after payment has been handled. how can that?

it feels missing since should standard setting using buttons.

got it, url can specified data-return.

<script src="paypal-button.min.js?merchant=stan-facilitator@merkwelt.com"      data-button="buynow"      data-name="new bot"      data-quantity="1"      data-amount="0.99"      data-shipping="0"      data-tax="0"      data-callback="http://www.merkwelt.com/people/stan/paypal/callback"      data-return="http://www.merkwelt.com/people/stan/paypal/success.html"      data-env="sandbox" ></script> 

via https://github.com/paypal/javascriptbuttons/issues/48#issuecomment-17439860


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -