thephpleague / omnipay-paypal

PayPal driver for the Omnipay PHP payment processing library
MIT License
299 stars 176 forks source link

No way to enable "digital goods" on an express checkout? #89

Open Taronyuu opened 9 years ago

Taronyuu commented 9 years ago

As far as I know there is no way to set the "L_PAYMENTREQUEST_0_ITEMCATEGORY0" flag to "Digital" in order for micropayment pricing to apply.

I might be missing something but I haven't found a way to use this.

Explained here: https://developer.paypal.com/docs/classic/express-checkout/ht_ec-basicDigGoodsPayment-curl-etc/

bencromwell commented 9 years ago

To do this you'd also need to change the Item object in omnipay-common, to have a category or a type field - both are perhaps common enough names to be added as optional parameters to the shared item. Either that or Item needs extending to support ad-hoc parameters that some gateways will use and others won't.