academe / Omnipay-Wirecard

Wirecard payment gateway driver for the Omnipay
GNU Lesser General Public License v3.0
1 stars 0 forks source link

Support Wirecard Checkout Page Capture #3

Closed judgej closed 7 years ago

judgej commented 7 years ago

The implementation differences between purchase and authorise+capture is very unclear in the docuemntation. From what I have worked out, a purchase requires the autoDeposit flag to be set. However, that can only be used if that feature is explicitly enabled on the account, so authorise+capture is the only way the account can be used out of the box.

Capturing can be done through the API, or through the Wirecard admin pages. It seems that to capture, you must explicitly capture each item that was in the original basket. I cannot find any examples of the complete transaction being captured in one go. The demo PHP scripts to show this in oepration do not even seem to reference the initial authorisation transaction.

So, a bit unclear, and something we need to get to the bottom of.

judgej commented 7 years ago

Trying it out, the basket is optional when capturing. You an capture all or part of the order, and can optionally specify which which parts of the original order basket are being captured.

The orderNumber is needed to reference the orignal order. This may be a better candidate for transactionReference.

judgej commented 7 years ago

This is implemented for Page and Seamless. Supports transactionReference as the ID to capture.