solidusio / solidus_bolt

BSD 3-Clause "New" or "Revised" License
1 stars 2 forks source link

Implement SolidusBolt::Gateway#authorize #48

Closed DanielePalombo closed 2 years ago

DanielePalombo commented 2 years ago

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.

DanielePalombo commented 2 years ago

Duplication of https://github.com/nebulab/solidus_bolt/issues/30