ruslyrossi
ruslyrossi

Reputation: 366

How to pass shipping address value in paypal email?

this is first time i'm develope paypal form , i have problem with shipping address how to get shipping address from customer and in email(see attach below) i want to insert into email from paypal ?

i don't know how to pass shipping address value.

enter image description here

enter image description here

Upvotes: 0

Views: 1309

Answers (1)

Aditya P Bhatt
Aditya P Bhatt

Reputation: 22071

There are mainly 10 hidden variables which we've to pass to PayPal for Payment related process mentioned as below (this method is very Basic PayPal Payment option, apart from it PayPal provides few other payment options as well):

<input type="hidden" name="business" value="Merchant Account Email Address here">
<input type="hidden" name="notify_url" value="http:// some url for notification purpose">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="Item name here">
<input type="hidden" name="custom" value="PayPal will return this value as it is in the same format, when it is in sending time, like some array values concat with some special character">
<input type="hidden" name="amount" value="Payment Amount here as decimal for ex. 50.00">
<input type="hidden" name="return" value="http:// return url here, after payment to our website">
<input type="hidden" name="type" value="paynow">
<input type="hidden" name="cmd" value="_xclick">

You can just send above hidden variables to PayPal and set required URL as per your demo server website path.

Keep in mind to keep developer.paypal.com account logged in while you're checking with PayPal Sandbox (test mode) account. It will be required.

Thanks !

Upvotes: 2

Related Questions