Unable to perform transaction for Multiple Items
Opened this issue · 0 comments
I have tried to use gem for multiple item purchase, but i din't find any way to implement with this gem.
options = options.reverse_merge(
token: @subscription.paypal_payment_token,
description: @subscription.package_plan.description,
payer_id: @subscription.paypal_customer_token,
frequency: @subscription.package_plan.recurring_frequency,
item_name: @subscription.package_plan.name,
item_quantity: 1,
item_amount: @subscription.package_plan.price * @subscription.package_plan.recurring_frequency,
item_name: @subscription.package_add_ons.first.name,
item_quantity: 1,
item_amount: @subscription.package_add_ons.first.price * @subscription.package_plan.recurring_frequency,
amount: @subscription.package_plan.price * @subscription.package_plan.recurring_frequency,
currency: @subscription.package_plan.currency
)
Considers only one item..