Authorize/Capture for PayPal

2019-03-22 11:58发布

问题:

Using PayPal IPN, can we implement delayed payment. Perfect example is Groupon where card is charged only when deal is tipped. Can someone throw light on implementation part using PayPal IPN and also how multiple cards can be charged at once when deal is tipped.

回答1:

For Authorize And Capture:

To make a payment authorize you will have to pass "authorization" in paymentmethod parameter instead of "sale"

  <input type="hidden" name="paymentaction" value="authorization" />

So, For this type of payment, paypal will not charge the sender immediately but will wait till receiver confirmation. To capture this payment two methods are available:

  1. Receiver will either click on capture button in account
  2. It can be done via a API - to capture the payment use DoCapture and void the payment use DoVoid