Comments (3)
yeah, those attributes aren't supported in this gem.
from paypal-express.
it seems like I can do it with custom_fields:
:custom_fields => {
:REQCONFIRMSHIPPING => '1',
'PAYMENTREQUEST_{n}_SHIPTONAME' => 'John Doe',
'PAYMENTREQUEST_{n}_SHIPTOSTREET' => 'Some Street',
'PAYMENTREQUEST_{n}_SHIPTOCITY' => 'Super City',
'PAYMENTREQUEST_{n}_SHIPTOSTATE' => 'CA',
'PAYMENTREQUEST_{n}_SHIPTOCOUNTRYCODE' => 'US',
'PAYMENTREQUEST_{n}_SHIPTOCOUNTRYNAME' => 'United States',
'PAYMENTREQUEST_{n}_SHIPTOZIP' => '94666'
}
}
however does not work to me for some reasons...
from paypal-express.
OK, seems like custom_fields actually should work, I just expected to see passed address on PayPal while payment however "no_shipping" should be true and the custom_fields should be passed, then after payment, the seller should get this address.
As per documentation:
https://developer.paypal.com/docs/classic/express-checkout/integration-guide/ECCustomizing/
"Suppressing the Buyer's Shipping Address
You can suppress the display of the buyer's shipping address on the PayPal pages. You might want to do this in these cases:
You are selling a product or service that does not require shipping.
You prefer to handle addresses completely on your own and do not want to let buyers choose from their PayPal address book.
To suppress the display of the buyer's shipping address, set the NOSHIPPING parameter to 1 in the call to SetExpressCheckout. No shipping address displays on Express Checkout pages. The following example suppresses the shipping address."
[requiredSecurityParameters]
&METHOD=SetExpressCheckout
&RETURNURL=https://...
&CANCELURL=https://...
&PAYMENTREQUEST_0_AMT=10.00
&PAYMENTREQUEST_0_CURRENCYCODE=USD
&PAYMENTREQUEST_0_PAYMENTACTION=Sale
&NOSHIPPING=1
&PAYMENTREQUEST_0_SHIPTONAME=J Smith
&PAYMENTREQUEST_0_SHIPTOSTREET=1 Main St
&PAYMENTREQUEST_0_SHIPTOCITY=San Jose
&PAYMENTREQUEST_0_SHIPTOSTATE=CA
&PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE=US
&PAYMENTREQUEST_0_SHIPTOZIP=95131
&PAYMENTREQUEST_0_SHIPTOPHONENUM=408-967-4444
from paypal-express.
Related Issues (20)
- UpdateRecurringPaymentsProfile API Operation
- Recurring Payment: Dont know where to specify IPN
- Dynamic notify_url for recurring payments
- is it still maintained? HOT 2
- How to query for "TransactionSearch" HOT 1
- Add Changelog HOT 1
- Checkout multiple items HOT 1
- Shipping addresses not being returned HOT 2
- Paypal Api Version HOT 3
- Instant Payment not Redirecting HOT 1
- Recurring payment does not accept currency code HOT 1
- Error when trying to change from sandbox mode. HOT 1
- Coding against non-payments
- Phone Number Ignored
- Getting 'payment_request' var to receive info about payment HOT 1
- Add "activation" in the param of recurring payment init, so it will charge 1 immediately upon complete. HOT 2
- transaction_id of recurring payment
- Example not working HOT 1
- Getting 'PayPal API Error: 'Version error'' HOT 24
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paypal-express.