BACKGROUND
I am writing a payment gateway plugin for NopCommerce 2.80. This is my first time writing code for a payment gateway. I am almost there, but having a few problems.
PROBLEMS
- Firstly, in the
ProcessPayment
method, I need to return aProcessPaymentResult
, which has the following properties (Can someone please explain to me the difference between these?):
AuthorizationTransactionCode
AuthorizationTransactionId
AuthorizationTransactionResult
CaptureTransactionId
CaptureTransactionResult
The gateway I need to implement (Tranzila) has the following fields returned:
ConfirmationCode
AuthNumber
RefNumber
TempRef
and a few others which probably don't apply in this scenario. I don't know how to map these to what Nop is expecting...
- Secondly, what is the
Capture
method for? I've looked at thePayPalDirect
plugin, but it's not very clear. When is this method called?