As far as documentation goes , only a single “order name” is possible. But i want to show each order item to the customer, so he can double-check them.
payment_service_for ...see documentation... do |service|
#enable item_name_1 attributes
service.add_field 'cmd','_cart'
service.add_field 'upload',1
#add individual items
@order.items.each do |item|
num+=1
[["item_name_#{num}",item.name],["amount_#{num}",item.price]].each do |name,value|
service.add_field name,value
end
end
...add additional information...
end
