Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Opening Paypal Digital Goods lightbox

I would like my customers to use the Paypal digital goods lightbox. I've used the following steps in Python/Django/Javascript to create an order by sending the customer to the Paypal website:

  1. Click button.
  2. Generate token by calling Paypal's SetExpressCheckout.
  3. Create an order for my product by visiting 'https://www.sandbox.paypal.com/webscr?cmd=_express-checkout&token=' with the token string from step 2 appended to the URL.

The above shows that I'm generating a token correctly, but I would like to use the lightbox instead in step 3. I've read the Digital Goods Integration Guide, but I don't see how I make the lightbox pop up and feed the token to the lightbox. Other documents lead me to think that Paypal causes the lightbox to show when the token is returned. Is there a basic HTML/Javascript/Python example of how the lightbox is activated?

like image 889
dave Avatar asked Nov 04 '22 05:11

dave


1 Answers

My solution is to use Stripe instead. Within 5 minutes I had a working lightbox credit card form. Within an hour I had a working payment solution hooked up, and was registering test transactions to my account.

Edit: I don't know why someone is voting down my answer. While waiting for someone to answer my question I in good faith tried Stripe for the first time. It worked.

like image 66
dave Avatar answered Nov 17 '22 21:11

dave