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

require_once class subscription file added #36

Closed rafasashi closed 8 years ago

rafasashi commented 8 years ago

require_once class file added for subscription

thenbrent commented 8 years ago

Thanks @rafasashi. Looks good to me. :smile:

rafasashi commented 8 years ago

You are welcome Brent ;)

I have a question for you.

When digital goods is not enabled on the account the request returns an error.

I have tried setting incontext_url and mobile_url to "no" for an account with no digital goods enabled but the result is the same.

Is it possible to use your library for express checkout only, without requesting a "digital goods" token?

2016-01-22 7:58 GMT+01:00 Brent Shepherd notifications@github.com:

Merged #36 https://github.com/thenbrent/paypal-digital-goods/pull/36.

— Reply to this email directly or view it on GitHub https://github.com/thenbrent/paypal-digital-goods/pull/36#event-522618840 .

thenbrent commented 8 years ago

Is it possible to use your library for express checkout only, without requesting a "digital goods" token?

I would think it is, because the in-context flow has been migrated to be available for Express Checkout instead of just Digital Goods, but I've never tested it because all my PayPal accounts and sandbox accounts have Digital Goods enabled.

You may need to change the value of the L_PAYMENTREQUEST_0_ITEMCATEGORY parameter to be Physical instead of Digital though (I that is the only thing that differentiates a Digital Goods and standard Express Checkout request).