Giter Club home page Giter Club logo

Comments (3)

nov avatar nov commented on July 20, 2024

yeah, those attributes aren't supported in this gem.

from paypal-express.

paxer avatar paxer commented on July 20, 2024

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.

paxer avatar paxer commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.