solidusio-contrib / solidus_afterpay

Apache License 2.0
1 stars 1 forks source link

Deferred payment flow bug #40

Open vassalloandrea opened 2 years ago

vassalloandrea commented 2 years ago

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

ChristianRimondi commented 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.

stale[bot] commented 1 year ago

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.