academe / OmniPay-Payone

A PAYONE gateway driver for the OmniPay framework
MIT License
15 stars 16 forks source link

Item price units #2

Closed judgej closed 8 years ago

judgej commented 8 years ago

The extended Item class assumes that the price for each item is supplied as minor currency units. There is not consistent documentation that states how item prices are supposed to be supplied, but I suspect it is major units in most other gateway drivers.

judgej commented 8 years ago

I think it is going to have to change to major units to be consistent with the overall amount for the transaction.

judgej commented 8 years ago

For reference, the question about the currency units was asked here:

https://github.com/thephpleague/omnipay/issues/380

The solution is to accept the following as equivalent:

judgej commented 8 years ago

Fixed and working.