vivid
vivid

Reputation: 1135

PHP and Paypal redirect by link

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

Answers (1)

Robert
Robert

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:

https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&[email protected]&amount=1.00&currency_code=GBP&item_name=tripdatagoeshere

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

Related Questions