recurring payment with paypal advanced NOT paypal pro - paypal

I am trying to make recurring payment work with PAYPAL ADVANCED
My script works in case of SALE transactions but there are issues when i try to create recurring profile.
ISSUES
When i am posting my request with CREATESECURETOKEN set to Y. It returns Invalid transaction type: Invalid Transaction Type for secure token creation request
Here is the string. Note i have changed user and pass here
PARTNER[6]=PayPal&VENDOR[10]=#####&USER[11]=#####&PWD[9]=#####&CREATESECURETOKEN[1]=Y&TRXTYPE[1]=R&RECURRING[1]=Y&TENDER[1]=C&ACTION[1]=A&PROFILENAME[6]=Gautam&ACCT[16]=4012888888881881&EXPDATE[4]=1214&AMT[5]=10.00&START[8]=06132013&PAYPERIOD[4]=MONT&TERM[1]=0&OPTIONALTRX[1]=S&OPTIONALTRXAMT[4]=2.00&EMAIL[20]=#####&SECURETOKENID[26]=MySecTokenID-51b93e0830f70&RETURNURL[51]=http://localhost:8080/php/test/payflow/advanced.php&CANCELURL[51]=http://localhost:8080/php/test/payflow/advanced.php&ERRORURL[51]=http://localhost:8080/php/test/payflow/advanced.php&BILLTOFIRSTNAME[4]=John&BILLTOLASTNAME[3]=Doe&BILLTOSTREET[12]=123 Main St.&BILLTOCITY[8]=San Jose&BILLTOSTATE[2]=CA&BILLTOZIP[5]=95101&BILLTOCOUNTRY[2]=US&SHIPTOFIRSTNAME[4]=Jane&SHIPTOLASTNAME[5]=Smith&SHIPTOSTREET[13]=1234 Park Ave&SHIPTOCITY[8]=San Jose&SHIPTOSTATE[2]=CA&SHIPTOZIP[5]=95101&SHIPTOCOUNTRY[2]=US
if i set CREATESECURETOKEN to N i receive Invalid merchant information: 10002-You do not have permissions to make this API call
I searched for documentation on recurring payment with paypal advanced but every where i found details about payflow pro. With no information about recurring payment with paypal advanced its not easy to make things work.
Any idea about what is wrong with my post data?.
I posted my query on paypal.com/mts a week back but have no reply.
NOTE: I have subscribed to paypal advanced and paypal recurring payment.
With paypal advanced the transactions are completed on the client website itself and user is never taken to paypal site. Yes it uses iframe for the purpose.
It works for SALE type transaction but not in case of recurring payment.

Payments Pro and Advanced don't support the Recurring Payment API calls. You would be using the Recurring Billing API calls through Payflow. The new Advanced and Pro accounts use Payflow Pro or Link.
Are you setting a billing type in the Secure Token call?
What is the ticket number you submitted? I'd to look up the account to see if the account is setup to use Recurring Billing and was created correctly.
Also, Advanced accounts shouldn't be using the Recurring Billing API calls. It is possible to create Recurring Billing profiles with an Advanced account but they have to be done through the PayPal Manager site.

Related

Can I create a Billing Agreement with credit card (without paypal account)

As per the subject. Does my customer MUST to have paypal account and login to his paypal account in order for me to create a billing agreement, or I can use credit card as payment method for a billing agreement?
I am working with REST Api
Thanks
It is possible.
An example of the API is here: https://github.com/paypal/PayPal-NET-SDK/blob/develop/Samples/Source/BillingAgreementWithCreditCard.aspx.cs
Subscriptions (recurring payments) option for direct payments needs to be also enabled in merchant paypal account. I had trouble with it but messaged paypal and they enabled the feature for us.
So tested and working now.

paypal recurring payments and paypal pro

I am trying to implement paypal pro (our software should work for an italian account) for recurring payments.
I cannot use "express checkout" beacuse a subscription can vary more than the 15% limitation in 180 days and we don't have a trial period.
I have downloaded samples from paypal for .net, created a sandbox account from the developer dashboard but when i test it, i give an error message "DPRP is disabled for this merchant".
Later i have read that recurring payments are enabled for "direct payments" but they are enabled only in US, UK, Canada and New Zealand.
In Paypal Pro for Italy documentation i have not found any information for Recurring Payments.
How can I create a recurring payment in Paypal without "express checkout" then?
With an Italian PayPal account you're not going to be able to use Payments Pro.
What you could do, though, is use Express Checkout with Billing Agreements / Reference Transactions instead of setting up a recurring payments profile. This way you won't have the 15% limitation.
You would include the billing agreement parameters in your SetExpressCheckout request, and then that would setup the billing agreement so that you can run future calls to DoReferenceTransaction to process some amount in the future using the billing agreement.
This way the process happens without additional approval, no redirect required, etc. You just make the DoReferenceTransaction call and the money is moved immediately. Reference transactions can be any amount, so you would have no limitation there.
The only difference with this method is that you'll need to create a CRON job on your server that loops through all your due accounts each day to run the reference transaction for each one. So you're basically building your own recurring system instead of using PayPal's.
If you happen to be working with PHP this PayPal PHP SDK will make all of the API calls very quick and easy for you.

PayPal Payments Advanced Transaction Types

This is probably a stupid question but I have to ask...
In the PayFlow Gateway Guide https://www.paypalobjects.com/webstatic/en_US/developer/docs/pdf/payflowgateway_guide.pdf
it says that with PayPal Payments Advanced the API does NOT support Sale or Authorization. Surely that can't be right. What is a PayPal Advanced account good for if you can't do a Sale or Authorization?
Additional information:
I'm testing using the Payflow_dotNET dll that comes with the PayFlow SDK. Works fine in test mode.
Thanks
I assume you mean these lines: NOTE: PayPal Payments Advanced and Payflow Link users cannot submit authorization transactions unless they obtain the Payflow SDK. and PayPal Payments Advanced and Payflow Link users cannot submit sale transactions unless they obtain the Payflow SDK.
I agree that the verbiage is quite cryptic. But it is talking about non-hosted pages. If you are using Advanced you should not be using the API to submit credit card purchases. If you need to do this you would need to upgrade to Payments Pro.
With Advanced/Link you still have access to the other API calls that would be available with Payflow Pro, you just cannot process credit cards without using the hosted checkout.
According to Page 14 and Page 65 of the Payflow link(PayPal Payments Advanced) developer guide:
Here are the accepted Transaction Types:
TYPE: A single letter that identifies the type of transaction (S: Sale or
A: Authorization). Transaction types are described on page 65.
Here is additional information on PayPal Payments Advanced/Payflow Link:
PayPal Payments Advanced Getting Started
Payflow Link Developer Guide

Why PayPal Request can’t be processed?

I’m trying to test recurring payment in my paypal sandbox account. I followed this link https://developer.paypal.com/webapps/developer/docs/classic/express-checkout/ht_ec-recurringPaymentProfile-curl-etc/
I have summarized the steps what I follow
Step 1: Get PayPal Token – Completed
Step 2: Redirect customer to PayPal with Token
https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=xxxxxxxx
After I send the request, paypal show the following page
After I entered the sandbox buyer account details, paypal display error message like “Currently, we unfortunately can not process your request. Return to Logical IT Solution GmbH and select another option.”
I have tried So many times, PayPal show this message only.
How can I implement recurring payment for my sandbox account without error?
You test German paypal account? If yes than Paypal recurring payments does not work with German accounts or at least not with all of them. This is some legal problem and that's why they disabled it.
Probably German law refuse to store recurring payments data on foreign servers.

Detecting cancellation of a paypal billing agreement setup with reference transactions

I am using the 'reference transactions' of the Paypal express checkout api to set up a recurring billing scenario for our customers. I have chosen this method since the amount billed per month will vary and there is no initial payment when entering into the billing agreement.
My question is, can I use the paypal IPN to detect when the user cancels this? I know that if the customer enters into this agreement they have the power to log into their own Paypal account and cancel the agreement. What variables should I be listening for through the IPN?
Whilst I see mention of recurring payments and recurring payment profiles in the IPN documentation these are not actually the same as setting up a recurring billing scenario via reference transactions (recurring payments and reference transactions are in two different parts of the general paypal api documentation).
Enable IPN in your PayPal account , then PayPal will notify you via IPN about the Billing agreement cancel from the customer.
If you include IPN with SetExpressCheckout, it will not work with Reference Transaction. You need to Enable IPN on PayPal site.