Storing Recurring Payment information in Database using Paypal pro - php

I want to make an online enrollment system using Paypal pro API. I want to have an option to pay tuition fee in an installment using Credit card. To do this , I am creating Recurring Payment profile using Paypal Pro. I am able to successfully create the recurring payment profile & store initial payment information into database.
Now When the next recurring payment happens, I want to store the the payment information into my database with some identity parameters such as Payee Id , PayeeEmail , PayeeEnrolledDepartmentId.
I have heard about IPN(Instant payment notification) Service in Paypal pro. But the main problem is , When i Create Recurring profile for the first time, I would like to send some Identity parameter such as Id, Email etc so that when the next time the IPN script is executed , I am able to recognize & store payment information with the correct identification.
How can I do this ? Please assist me with some useful techniques or codes.

When PayPal creates the profile, it will create and associate a profile ID with the buyer. You could use this as a unique identifying value. If you are wanting to pass over your own, you could pass over something in the description "DESC" variable.

Related

How do I create monthly auto billing by different amount in paypal?

I am building advertise server using CodeIgnitor.
I am going to receive money per month automatically.
The monthly amount is different by the number that ads click.
So I have authorized user's paypal once user signup and got user's information.
But I can not receive monthly amount without user's agreement.
Are there any solutions for this?
Don’t use ordinary payment methods use subscription payment method
Refer the documentation
paypal subscription documentation

How do I create a customer on stripe without enter card information

there I would like to create a customer on stripe without the user entering their card information to begin with. When a user signs-up to my website, i would like them to also have an account created with stripe. I want information such as address to be stored on stripe from signing up on my website. So when the user does want to purchase an item the information can then be retrieved from stripe. How can I do this.
Stripe is for processing payments. It isn't a customer management platform.
If you want to store user information like addresses prior to taking payments through Stripe, you'll need to store them yourself.

How can I make an automatic PayPal buy button?

I want my PHP web application to have the ability to save the user's PayPal details in their user account.
When they go to purchase items, rather than going through the standard PayPal form, it will automatically grab the user's PayPal details from their user account, and make the payment directly from my website. There is definitely a way to do this, as I have seen this feature on sites such as Freelancer.com
Thanks for the help! :)
No, you don't need Payments Pro for that. That would only be if you want to do it with direct credit cards. What you're after in general is called Reference Transactions, and when done with PayPal Express Checkout it uses Billing Agreements.
You'll use Express Checkout and/or Payments Pro (optional) to process an original authorization or sale transaction. Then, you can send that ID you get back in that original transaction along with a new amount in the DoReferenceTransaction API and that new amount will be instantly processed without any redirection or further authorization required.

PayPal tracking not showing the Receipt ID for certain transactions

I'm using Website Payments Standard account and I have integrated Add to Cart button and Subscription button in my website. Few payments were made by my clients. But upon downloading my transaction history, I cannot view/retrieve the Receipt ID for certain payments, no matter if it is through Add to Cart or Subscription. Few transactions shows blank field for receipt ID. Can anyone guide me in finding out the problem? Is it anything related to my Website Payments Standard account? Or anything related to my client's account?
The PayPal IPN variable reference states the following for the receipt_id parameter.
Unique ID generated during guest checkout (payment by credit card
without logging in).
Sounds to me like you must have some payments coming through via guest checkout and others coming through as actual PayPal payments, so those wouldn't have a receipt_id.

Subscription system with Paypal

I'm developing a restaurant catalog in which the restaurant owners pay a monthly fee for having their restaurant appear on the site. I was thinking in using Paypal recurring payments but I don't understand exactly how it works. Would Paypal automatically charge the fee each month? (Like auto-renew) or would the users be able to decide if they pay or not? I need that the users decide if they want to continue with the membership instead of being automatically charged. How can I achieve this with Paypal?
I'm using express checkout with instant payment notifications (IPN).
Recurring Payments would be a subscription that would be charged automatically unless the profile was in a canceled or suspended state. So if your customers signed up, they can indeed choose whether to pay or not if you give them a way to suspend their profile, which you can do via the ManageRecurringPaymentsProfileStatus API.
If you would rather setup a way where users have to click a button to approve the payment each month then you could go with a billing agreement and a reference transaction. In your SetExpressCheckout request you would make sure to include the billing agreement parameters to get a valid token, and then when the order is completed with that billing agreement you can use the transaction ID you get back from it in a DoReferenceTransaction request in the future to process any amount using the previous billing info that PayPal has saved, so no additional login auth would be necessary.

Categories