feat(boleto): Introduce Boleto as a valid Stripe Payment Method #3111
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
We're adding support for Boleto payment method through Stripe 🇧🇷
Description
Boleto requires 2 step. First the payment is initiated on Stripe and the customer receive a barcode to go pay IRL.
This PR has very little change because most of it already works and is already tested 😅 but it requires a fair amount of manual QA.
To test the integration, you can use different email address as described in Stripe docs. By default, boleto payment are completed after 3 minutes.
TODO
boleto
toPaymentProviderCustomers::StripeCustomer::PAYMENT_METHODS
boleto
is a valid payment method for a customerboleto
is a valid payment method for a customerpayment.requires_action
webhook is sentnext_action
since the customer is “on session”POST /customers/:id/checkout_url
)next_action
because there is no payment at this stage, just setupPOST /payment_requests
)payment.requires_action
webhook is sentPaymentRequestMailer
email is sentScreenshots
Create new customer, without payment method, create invoice and use invoice payment_url to pay
Create new customer and set up payment method
Invoice collection with Boleto set up