Giter Club home page Giter Club logo

Comments (13)

nov avatar nov commented on July 20, 2024

What do you mean?
:pay_on_paypal = true option is already supported.

from paypal-express.

rromanchuk avatar rromanchuk commented on July 20, 2024

Sorry, my magic mouse went crazy on me before i could finish typing, didn't think it actually submitted. I meant to make a ticket for adding support for detailed items. eg

&L_PAYMENTREQUEST_0_NAME0=10% Decaf Kona Blend Coffee
&L_PAYMENTREQUEST_0_NUMBER0=623083
&L_PAYMENTREQUEST_0_DESC0=Size: 8.8-oz
&L_PAYMENTREQUEST_0_AMT0=9.95
&L_PAYMENTREQUEST_0_QTY0=2

I just made a slight change to express/response.rb that I am about to check into my fork and was going to ping you then.

from paypal-express.

rromanchuk avatar rromanchuk commented on July 20, 2024

or instead of mucking up the option filtering, what about letting any unrecognized options get through Response < NVP::Response#query since it would probably be a pain to support all the customization calls and 'advance' usage listed here https://cms.paypal.com/cms_content/US/en_US/files/developer/PP_ExpressCheckout_AdvancedFeaturesGuide.pdf

from paypal-express.

nov avatar nov commented on July 20, 2024

I just looked your commit here.
rromanchuk@18e1994
What you want to do is like this?

Paypal::Payment::Request.new(
  :amount => 10,
  :currency_code => :JPY,
  :description => 'Instant Payment Request',
  :notify_url => 'http://merchant.example.com/notify',
  :items => [{
    :name => 'Item1',
    :description => 'Item1 Desc',
    :amount => 10,
    :category => :Digital
  }]
)

from paypal-express.

rromanchuk avatar rromanchuk commented on July 20, 2024

That looks great.

from paypal-express.

nov avatar nov commented on July 20, 2024

Then you can do it now ;)

from paypal-express.

rromanchuk avatar rromanchuk commented on July 20, 2024

Hahahaha, not sure why I didn't browse lib/payment, I'm an idiot.

from paypal-express.

nov avatar nov commented on July 20, 2024

You can also see this wiki.
https://github.com/nov/paypal-express/wiki/Digital-Goods
You don't need :category => :Digital if you are selling real goods.

from paypal-express.

rromanchuk avatar rromanchuk commented on July 20, 2024

Any recommendations for random customization NVPs like ALLOWNOTE=1

from paypal-express.

nov avatar nov commented on July 20, 2024

If you don't care about using uppercase key as hash key, you can go with your change.
If not, you can add new option to this gem.

I'll add ALLOWNOTE one soon.
If you already have a change for it, I'm very thank for your pull request :)

from paypal-express.

nov avatar nov commented on July 20, 2024

It seems ALLOWNOTE is 1 as default.
Do you want to turn off it?

from paypal-express.

nov avatar nov commented on July 20, 2024

Just released 0.2.8.
Now you can access Paypal::Payment::Response#note when user put a note.

from paypal-express.

rromanchuk avatar rromanchuk commented on July 20, 2024

thanks! I will leave you alone now for a day or two :)

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.