-
-
Notifications
You must be signed in to change notification settings - Fork 164
Digital Goods
nov matake edited this page Feb 24, 2011
·
7 revisions
Both Instant/Recurring payment request are OK.
This sample shows Instant one.
request = Paypal::Express::Request.new( :username => SET_YOUR_OWN, :password => SET_YOUR_OWN, :signature => SET_YOUR_OWN, :return_url => SET_YOUR_OWN, :cancel_url => SET_YOUR_OWN ) payment_request = Paypal::Payment::Request.new( :currency_code => :JPY, # if nil, PayPal use USD as default :amount => SET_YOUR_OWN, :description => SET_YOUR_OWN, :items => [{ :name => SET_YOUR_OWN, :description => SET_YOUR_OWN, :amount => SET_YOUR_OWN, :category => :Digital }] ) response = request.setup(payment_request) response.popup_uri
After that, Instant Payment or Recurring Payment