I want to do this but by code each month. (by curl for example)
I only have ID profile: I-************
Is possible? I can't find the way.
Thanks.
Unfortunately, you cannot do this with recurring payment. For your case, you can actually use reference transaction to bill your customer each month. You will need to call for reference transaction API each month using curl.
Refer this documentation: https://developer.paypal.com/docs/classic/express-checkout/ec_set_up_reference_transactions/
Related
I am using the PayPal API for subscription, so far on Sandbox and everything works as expected. I have read the whole documentation of PayPal api and unfortunately couldn't find what I need, that's why I'm asking here.
I am recently considering to add Discounts as well, and wish to have that in two ways:
New customer enters the discount code the first time they want to join the company. (e.g. use the Valentines Discount Code and get 10€ on your first month).
Already existing customers get a discount on one of the months. (Let's say they pay 25€ monthly, and they get a 10€ discount in the 3rd month for whatever reason, now the payments look something like this. 25€ 25€ 15€ 25€ etc...).
Is there really no way to add discounts to subscriptions in PayPal? I would be really glad for any hints / help. Thank you.
For discounts at checkout time, when creating the subscription and specifying a plan_id, you can also specify a plan object with different billing cycle values that override it, for example a lower regular amount or an additional lower amount trial period. See the Create Subscription API call; available parameters for the createSubscription JS SDK function are the same.
For discounts after a subscription is active, you will need to update the subscription. This can be done with the Update Subscription patch API call.
We are planning to integrate to PayPal with following requirements:
We collect card based payments for US customers.
We are planning to integrate with Payflow Gateway with "Sage" as our processor.
We will have customers who will allow us to charge them on a periodic
basis (replenishment with Card on file).
Questions:
Is Payflow Gateway suitable for our requirements?
Does Payflow Gateway has a REST based interface? How do we tokenize (card on file) without keeping card numbers with us?
If "reference transaction" is the only way to do Card on file operation, how do we overcome the expiry period (1 year) of referenced transaction?
Payflow will do this through the reference transaction feature. For a reference transaction, you will be storing the transaction ID in your database, and the next time you want to charge the customer you will use the same transaction ID instead of passing the card details again.
Usually any transaction ID at Payflow is valid for one year, as per the docs. So in order to overcome that one year restriction, you are supposed to update your database every time with the latest transaction ID.
For example, a customer placed an order today, and you store the Payflow transaction ID in the database. Now suppose you need to charge the customer again after 7 months, then you will get a new transaction ID. This time, update your database with the new transaction ID for the same customer, and this way it will be valid again for another year.
You can do reference transactions (using the returned PNREF) but, like you said, they expire in 1 year. The only workaround for this I've found is to issue a zero-dollar authorization (ZDA) to get a new PNREF but there is some confusion about this with some reports saying that the new PNREF created by the ZDA will only work for 14 days.
The online version of the Payflow Pro Guide now states that the PNREF is good for reference transactions for "12 months and possibly up to 15 months". Unfortunately, that is pretty ambiguous wording that doesn't clear up very much.
I'm interested in using paypal to process my payments.
The payments will either be single time only or recurring (maybe some sort of checkbox for recurring vs. non-recurring).
I have a product price in my own database I want to use in paypal, and I have a subscription length in months in my database that I would like to use in paypal.
Is there a way in paypal to, based on my own information
Set the price of the transaction based on db value
Set as a recurring or 1-time payment. [form checkbox]
Set number of months of subscription length based on db value (paypal billingcycle)
If this is not possible what is recommended for me to do?
I would love if I could just auto-generate some link.
I found this: http://www.blogbyben.com/2009/04/paypal-link-generator-build-your-own-1.html
http://www.itaynoy.com/sites/paypal_button_generator/
but I need to be able to add more options like subscription length and recurring billing.
Thanks.
Are you attempting to dynamically generate a PayNow button? If so, this thread may be of some use to you:
automatically create buy now button paypal?
I am implementing a payment subsystem with the REST API and recurring payments.
I have created several plans and when I make a subscription to one of these plans, the first payment it's done the day after I subscribe the plan. I expected to receive the first payment at the same moment I subscribe the plan. Why it's waiting for next day to do it?
At the moment I am using the sandbox.
Can somebody help me to achieve the behaviour I expected for the first payment when subscribe?
I mailed PayPal MTS and they answered me that for the moment it's not possible to do a inicial instant charge when you create a subscription using the REST API.
You can do it with the Classic API setting up the optional INITAMT from the Activation Details Fields.
You can get more details here: https://developer.paypal.com/docs/classic/api/merchant/CreateRecurringPaymentsProfile_API_Operation_NVP/
I am writing a subscription where I need to provide users a month trial and charge $5.00 after trial is finished. I just found an amazing code to do that for me.
I also have setup paypalpro plus recurring payments
This is the link
https://github.com/krio/paypal-recurring-subscriptions
Questions:
1- How to make first month Free Trial?
2- I need to update users billing and update their payment in my database so it can calculate their subscription, how would i get to call from paypal to my files to update?
If you are using subscriptions and you are wanting to make the first month a free trial, you would need to pass over the following variables and values.
a1=0
p1=1
t1=M
You can find a description of all of the variables for subscriptions here.
If you are wanting to get updates back to your system/database to update your profiles and etc, you can use IPN to do this. Instant Payment Notification (IPN) is a message service that notifies you of events related to PayPal transactions. You can use it to automate back-office and administrative functions, such as fulfilling orders, tracking customers, and providing status and other information related to a transaction.