Trigger ProcessPayment

Daniel Sundqvist
Member since: 2008
 

We have implemented a custom payment provicer which works fine when buying with credit card.
We get an Authorization on the payment, and when entering commerce manager and release the shipment and setting the shipment as delivered it triggers a ProcessPayment on the PaymentGateway which makes a capture request to the payment provider for the credit, everything fine so far.

But we have some items that's doesn't need to be shipped, so i tried to set the shipment status as shipped from code as soon the payment is completed, but this doesn't trigger ProcessPayment. Even if i say cart.ProcessPayment my method doesn't seem to be invoked. 

Should I do this in some other way or is it another status I can set to call the payment gateway and make a capture request?

#202065 Mar 13, 2019 9:02
  • Quan Mai
    Member since: 2011
     

    So you want to call ProcessPaymentActivity without making changes to inventory system? I guess you are talking about digital content as download code? 

    #202102 Mar 14, 2019 10:16
  • Daniel Sundqvist
    Member since: 2008
     

    Yes, that's exactly what I want to do. For example, selling a PDF.

    #202123 Mar 14, 2019 16:25