Paypal Mini-Browser / Lightbox Implementation / onsite payment
- or -
Post a project like this1752
€30(approx. $32)
- Posted:
- Proposals: 4
- Remote
- #2423945
- Awarded
Description
Experience Level: Entry
Hello,
Let me give you some details about the task.
I have a PHP based website and what I do now is the following:
I have a html form. The customer fills in the required fields like amount and some other stuff and clicks on the payment button. Then the form is redirecting to a url with some php code which creates a record in the MySql DB and builds the paypal array containing the amount and success/cancel URLs etc . When all is done I redirect to paypal via this :
redirect("https://www.paypal.com/cgi-bin/webscr?".http_build_query($paypal_vars));
when the payment is done or canceled the coresponding "return "or "cancel_return " are either marking the payment as paid or deleting it from the database.
This is causing some troubles right now, because when the user has internet issues, is not forwarded to the url after the payment for any reason or forgot to click on the "return to merchant" button for mobile users. It does not mark the record as paid in the DB, nor deleting it.
It seems to me that this problem should be easily resolved by this approach:
https://developer.paypal.com/docs/classic/adaptive-payments/ht_ap-embeddedPayment-curl-etc/
but because of the lack of time I cannot sit and play with it right now.
My expectation is to have onsite paypal payment mechanism w/o redirecting the customer to the paypal website so the payment can be completed on my domain only. Please note that there is a custom amount that would be passed for the payment.
Please feel free to ask any questions or suggest other aproaches that would be better for my case.
Thanks.
Let me give you some details about the task.
I have a PHP based website and what I do now is the following:
I have a html form. The customer fills in the required fields like amount and some other stuff and clicks on the payment button. Then the form is redirecting to a url with some php code which creates a record in the MySql DB and builds the paypal array containing the amount and success/cancel URLs etc . When all is done I redirect to paypal via this :
redirect("https://www.paypal.com/cgi-bin/webscr?".http_build_query($paypal_vars));
when the payment is done or canceled the coresponding "return "or "cancel_return " are either marking the payment as paid or deleting it from the database.
This is causing some troubles right now, because when the user has internet issues, is not forwarded to the url after the payment for any reason or forgot to click on the "return to merchant" button for mobile users. It does not mark the record as paid in the DB, nor deleting it.
It seems to me that this problem should be easily resolved by this approach:
https://developer.paypal.com/docs/classic/adaptive-payments/ht_ap-embeddedPayment-curl-etc/
but because of the lack of time I cannot sit and play with it right now.
My expectation is to have onsite paypal payment mechanism w/o redirecting the customer to the paypal website so the payment can be completed on my domain only. Please note that there is a custom amount that would be passed for the payment.
Please feel free to ask any questions or suggest other aproaches that would be better for my case.
Thanks.
Alterman ltd
100% (1)Projects Completed
1
Freelancers worked with
1
Projects awarded
50%
Last project
19 Jun 2019
Bulgaria
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
Many people prefer (trust more) paying at the Paypal website, that's why hardly anyone uses the lightbox approach.
814901
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies