This method will receive the amount, payment_source, and gateway_options and should create Spree::Payment.
The Spree::Payment should have the Transaction.reference, retrieved by Authorize Service stored on the response_code.
It would be nice to store even the credit_card_id on the SolidusBolt::PaymentSource, so by providing a method SolidusBolt::PaymentSource#reusable? which returns true, the payment source will be shown to the user for further payment.
Ref https://github.com/nebulab/solidus_bolt/blob/master/app/models/solidus_bolt/gateway.rb#L7-L9
This method will receive the amount, payment_source, and gateway_options and should create Spree::Payment. The Spree::Payment should have the Transaction.reference, retrieved by Authorize Service stored on the response_code. It would be nice to store even the credit_card_id on the SolidusBolt::PaymentSource, so by providing a method SolidusBolt::PaymentSource#reusable? which returns
true
, the payment source will be shown to the user for further payment.