thenbrent / paypal-digital-goods

The missing PayPal Digital Goods PHP library. Discontinued - PayPal no longer offer the Digital Goods product.
Other
121 stars 38 forks source link

Feature Request #40

Closed NitinPrakash closed 8 years ago

NitinPrakash commented 8 years ago

If it can be done via paypal-configuration-class.php then this class can be more useful for developers. Thanks in advance

$api_request .= '&L_PAYMENTREQUEST_0_ITEMCATEGORY'.$item_count.'=Digital'

or

$api_request .= '&L_PAYMENTREQUEST_0_ITEMCATEGORY'.$item_count.'=Physical'

thenbrent commented 8 years ago

@NitinPrakash this library was written strictly for the PayPal Digital Goods API, which required the item category to always be Digital, that's why it's not configurable.

The Digital Goods API is no longer supported for new merchants, and it does share a lot of similarities with the PayPal Express Checkout API, where Physical items are supported, so in theory, this library could be ported or refactored to be a generic Express Checkout library.

However, I've personally lost way too much of my life the last 5 years working with assorted PayPal APIs and have no intention of losing any more by modifying this library to be a generic Express Checkout library (which has other requirements). If you want to make it into that, you could fork it use it as a base (it's 100% GPL licensed).

NitinPrakash commented 8 years ago

@thenbrent Thanks brother.

GaganTiwari commented 8 years ago

Ya exactly @NitinPrakash it can be done via paypal-configuration-class.php then this class can be more useful for developers.

Thanks in advance both of u @NitinPrakash and @thenbrent .