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
Post a Comment