Open vassalloandrea opened 2 years ago
@vassalloandrea I don't think it's an issue related to the purchase
method. As you can see in the solidus codebase, the purchase
method is only called if the auto_capture
is set to true
. Otherwise, it calls only the authorize
method. We should investigate further if it's an "issue" with how Afterpay handles the authorization of the payment or if it's a bug in the gem.
This issue has been automatically marked as stale because it has not had recent activity. It might be closed if no further activity occurs. Thank you for your contributions.
From the documentation: https://developers.afterpay.com/afterpay-online/docs/api-calls-and-payment-flows I'm expecting that the correct behavior is:
Actual behavior:
I think that the problem is related to this line: https://github.com/nebulab/solidus_afterpay/blob/65346f79f49e2d119a747718e63f1395b170a9dd/app/models/solidus_afterpay/gateway.rb#L68
What do you think? @mtylty @ChristianRimondi @garciajordy