Paypal Billing Agreement with Do DIrect Payment/CreditCard - paypal

I have been working on Reference Transactions. Is it possible to create a Billing Agreement using Do Direct Payment as it is not returning any token in the response ??
Thanks

There is no billing agreement that gets created with the DoDirectPayment API. In order to charge the buyer again, all you have to do is make the API call for a reference transaction and pass over the previous successful transaction id. Express Checkout would be the API that you would want to use if you want to set up a billing agreement.

Related

get state of agreement paypal subscriptions

I have integrated paypal php rest api to create plan and then I have create billing agreement for this plan but the issue is payment is not deducting instantly and I want to know that how will came to know that payment is deducted from payee account.
after executing billing agreement I get object of billing agreement as response and in that object it show that billing agreement is activated but in payee's account transaction status of agreement is pending in response object outstanding amount is also zero
I want to know way to identify that amount is deducted form payee's account or not. so that I can take action accordingly.
I have solved this issue but for this I have to use callback or we can say webhooks
One more thing was there is
Webhook never works on subdomain and ssl is also requiered .

PayPal PayFlow - converting existing transaction into Recurring Payment Profile

I'm a bit confused about PayPal Payflow Recurring Billing
I read in the documentation that I can convert an existing transaction into a recurring payment profile.
This means that I can send my user to the ExpressCheckout page where she makes a "zero dollar" one time transaction, and then, PayPal sends me back the transaction ID (PNREF) which I can use as ORIGID value when I'm creating the new profile?
And if its correct, it means that I don't have to handle credit card and other sensitive information, because basically the user types her details on the PayPal hosted checkout page?
Yes, you can use a completed transaction to create a recurring billing profile, but it cannot be an auth transaction (zero dollars or otherwise). Quote from the documentation:
IMPORTANT: You can use only a Sale or Delayed Capture transaction as a
template for a profile.
https://www.paypalobjects.com/webstatic/en_US/developer/docs/pdf/pp_payflowpro_recurringbilling_guide.pdf

How can I cancel a PayPal Billing Agreement via an API call

I'm using PayPal NVP API to do reference transactions with express checkout. I create billing agreements and charge using the agreements in sandbox and in a production environment, however when I try to call BAUpdate (METHOD=BillingAgreementUpdate in the NVP API) I get the a response with error code 81002 and description
Method specified is not Supported
I can't find anywhere in PayPal's docs if this method is deprecated or if I need to send something else.
The proper call is BillAgreementUpdate (confusing, I know). That should let you cancel your billing agreement.

Paypal Digital Goods, Transactions not displaying

I've integrated Digital Goods with Express Checkout for my site and I've successfully tested with using sandbox. However I doesn't show any record of the transaction I've just completed in either the merchant account or the test account.
Should I be seeing a transaction? and if so, what could have gone wrong such that a transaction record isn't appearing?
You're most likely not calling the DoExpressCheckoutPayment API call to finalize the transaction.
DoExpressCheckoutPayment is a mandatory API call used to create a transaction out of a TOKEN and PAYERID (assuming the buyer has approved the transaction on the PayPal website).
The API doc (NVP) for DoExpressCheckoutPayment is available at developer.paypal.com.

Recurring payment using reference transaction

Is it possible to Create a Recurring Payment Profile using DoReferenceTransaction or is there any other way to set up recurring payment when I've got "billing agree" from customer and REFERENCEID - an id of customer's previous transaction.
Thanks
You can set
RECURRING
field of DoReferenceTransaction API call, but first you need a billing agreement with buyer.
I recommend doing recurring payment with CreateRecurringPaymentsProfile call.
API is here.
I've got billing agreement with buyer ("billing agreement ID") - according to reference transaction api .
I also can do transactions with DoReferenceTransaction like:
$nvpstr="&L_AMT0=".$itemamt."&L_QTY0=1&AMT=".(string)$amt."&ITEMAMT=".(string)$itemamt."&CALLBACKTIMEOUT=4&REFERENCEID=B-6J7244599E964634T&ReturnUrl=".$returnURL."&CANCELURL=".$cancelURL ."&CURRENCYCODE=".$currencyCodeType."&PAYMENTACTION=".$paymentType;
$resArray=hash_call("DoReferenceTransaction",$nvpstr);
However I still don't know how to set up recurring payment using reference transaction cause in API link you gave me, there is a note that Credit Card ACCT number is required - but I don't want to store client's card numbers in my database (I am using express checkout).