PHP Paypal recurring payment - php

Hi
Can someone please explain me if "PayPal recurring payment" and "Paypal subscription" are the same thing?
Like I am working on a monthly membership payment integration with php and paypal. What I need to do is make this go on forever until the member decides to opt out. I am using this class found at www.micahcarrick.com/php-paypal-ipn-integration-class.html for the integration.
In the class you can mention like for how long you would like to make it as recurring payment but there are no options to make it go forever like a monthly subscription thing. Please help!
Many thanks in advance and I really appreciate your help :-))

These are not the same thing. A standard PayPal account can create subscriptions but not recurring payments. If you plan to use IPN as your only integration, you need to create subscriptions, not recurring payments. You do not create them programmatically, you just generate a subscription link and the buyer creates the subscription on the PayPal website.
Recurring payments are part of one of the APIs accessible to PayPal Website Payments Pro accounts.

Related

How to manage response from paypal when people pay as a guest checkout. No paypal account

I'm using a custom php Paypal nvp API for express checkout.
When people pay with their paypal account I have no problem in my php script, I insert the order, order details and I send the email to the customer. When people pay with their credit card without paypal account I don't receive the transactionid.
The strange fact is that when I use the sandbox, I generate a fake visa I do the payment, in my database I have the transaction id and I receive the email.
Someone had or is having my same problem?
There are different ways to manage payment with and without account?
For both I'm checking the payment status = Complete.
Happy to help your query,
Firstly, PayPal NVP is deprecated implementation. There wouldn't any support for new merchants who willing to add PayPal as a payment option.
Please go through the below recent products which run on REST APIs. I suggested two options of accepting payments so, hence choose the best one suits you.
Standard Integration Link.
Advanced Credit & Debit Card Link.
Thanks.

How to add Paypal IPN into my website for getting subscription status after few days

I am creating recurring payment using paypal and want the status of the payment after few days.I mean i want to check user is still subscribe us or cancel the subscription. if he/she cancel the subscription or i want to update his status into my website.
Can you anyone help me out please.
Thank you.
If you are using Standard subscriptions or NVP/SOAP recurring payments APIs when you will get an IPN when the profile is canceled, so you can automate the processing of that. In the case of recurring payments APIs you could also use GetRecurringPaymentsProfileDetails any time you want to check the status.
If you are using REST API billing agreements / billing plans then you can use Webhooks, which are similar to IPN. You could also use GET to pull plan details.

paypal chained payments on my website

I have no experience in integrating Paypal, so I'm sorry if my questions seems a little bit odd..
I have tried for the last 48 hours to read Paypal API docs, but I can't figure out how to achieve what I'm looking for:
I want to use the chained payment option on my website,
but I don't want to host the purchase form etc on my website,
I want to put a purchase button that will redirect to paypal's payment page, where there will be two options:
- Pay with Paypal account
- Pay with credit card
can anyone reference me to what should I do?
thanks..
Read through the Adaptive Payments developer guide, and then take a look at the Pay API specifically.

PayPal checkout solution confusion

I am trying to figure out exactly what payment solution to use for my site.
I would like to do the same thing as Spotify (https://www.spotify.com/us/freetrial/ - You'll need to login to see it), allowing users to choose whether they want to pay with PayPal or use a credit card and then taking them to a payment selection screen (on PayPal), then returning them to my site to click confirm and buy.
I am already paying for recurring payments (even though I've yet to use it) and am unsure if that is applicable here. I have also integrated express checkout but I don't know if it will allow recurring payments.
EDIT: Do I need a separate token for recurring payments? Do I have to use the old recurring payments checkout screen? How can this be done as efficiently as possible, like Spotify? Here are my efforts to create a recurring payments profile after express checkout: http://pastie.org/private/sakzopltnwfv93wwmduqq
Diagram:
Select Buy & PayPal (subscription) --> Choose Payment (on PayPal) --> confirm & pay (my site)
This is what spotify's checkout looks like (It wouldn't say update for first time users):
Are they using recurring payments + express checkout? I would really appreciate some help with this.
Yes, you can get this done with Express Checkout + Recurring Payments. That said, if the person chooses credit card when setting up a recurring payment they will have to create a PayPal account. If they're paying a non-recurring checkout then they could use the credit card option without creating a PayPal account.
You mentioned that you're already paying for recurring payments..?? Are you referring to Payments Pro? If so, you don't need to pay for that to use EC + RP. Pro is only necessary if you want to process credit cards directly on your site without ever redirecting to PayPal. This can sometimes make things seem a little more professional and would also give you the ability to let people setup recurring payments without creating a PayPal account when using a credit card.
When using EC you just need to make sure to include the billing agreement parameters in order to get a token back that will work within CreateRecurringPaymentsProfile. Refer to the SetExpressCheckout API reference for more details on that.
This is kind of old now, but is still useful. Take a look at this sample express checkout set of api calls. You'll notice it uses the same token throughout all of the calls.
Just like Spotify -you would need to build that option on your site. If the user chooses to subscribe with a credit card - use the recurring payments w/ direct credit card (see below). If the user chooses to subscribe with a PayPal account - use the recurring payments w/ PayPal Account (this is what Andrew is suggesting above in his response).
Here are the how-to guides:
For direct credit card subscriptions: https://www.x.com/developers/paypal/documentation-tools/paypal-payments-pro/how-set-recurring-payments-profile-using-direct-payment
For PayPal Account subscriptions: https://www.x.com/developers/paypal/documentation-tools/express-checkout/how-to/ht_ec-recurringPaymentProfile-curl-etc
The APIs would allow you to do things like trial periods, setup fee, etc. For example here is a how to on building a freemium kind of model: https://www.x.com/developers/paypal/documentation-tools/express-checkout/how-to/ht_ec-freeTrialRecurringPayments-curl-etc

how to setup paypal adaptive payments with recurring billing feature

are there any tutorials on how to setup paypal adaptive payments api with recurring billing? I searched everywhere but only find the payflow and paypro with recurring billing. And please don't link/point me to the dev docs on paypal's website, those don't really help since they are too detailed and long...and not to mention don't really show any code examples on this.
You could use the preapproval feature with Adaptive Payments to set up a type of recurring payment. A preapproval is an approval to make future payments on the sender’s behalf. So you could set your system up to automate the calls, such as a cron job or etc to process the payments for you. There should be information on this in the Adaptive Payments guide. Some online gaming sites use this features for purchases and subscriptions.

Categories