Reputation: 1135
Hi stackers i got a question about paypal and linking. Is there way to generate link to paypal with thouse data:
$payment_Id = generateRandomString();
$currency = $_POST['currency'];
$price = $_POST['price'];
$trip = $_POST['trip'];
I want to create order that client can pay for it.
Upvotes: 0
Views: 45
Reputation: 19356
Yes. But you really, really need to automatically or manually verify the right amount was paid though (i.e. via PayPal Instant Payment Notification).
But you can get paid via PayPal as easily as simply create a link and appending GET
params to it:
Alternatively, feel free to use the above params and send them to us via POST
. As long as you send them to https://www.paypal.com/cgi-bin/webscr
If you're interested, we've got lots more variables available for use at HTML Variables for PayPal Payments Standard.
Upvotes: 2