Checkout multiple items
chrisjeon opened this issue · comments
Is there a way to checkout multiple items at once? I see that you can pass in a array of hashes into:
payment_request = Paypal::Payment::Request.new(
:currency_code => :JPY, # if nil, PayPal use USD as default
:amount => SET_YOUR_OWN,
:items => [{
:name => SET_YOUR_OWN,
:description => SET_YOUR_OWN,
:amount => SET_YOUR_OWN,
:category => :Digital
}]
)
but the items key only seems to accept one hash, and no more. Is this intended behavior? Because that :items key is really misleading because it's plural and it's an array, making it look like I can add multiple items.
Nevermind, the issue was on my end. Apparently the total amount in the items array has to add up to the total amount on payment request.