Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: add new payment method for Bacs debit #35

Draft
wants to merge 1 commit into
base: 7.x-2.x
Choose a base branch
from
Draft

Conversation

katzmo
Copy link
Contributor

@katzmo katzmo commented Jul 1, 2021

Incomplete draft implementation for bacs debit.

For the current code, Stripe responds with "Your account is not configured to allow passing mandate_data directly when confirming PaymentIntents for Bacs Direct Debits." Not quite sure what that means. Maybe a customer (with the bacs_debit method) needs to be created before attaching it to a setup intent?

Edit: The error has changed to "Your account is not configured to directly use SetupIntents to create Mandates for Bacs Direct Debits." when adding "bacs_debit" as payment method type to the setup intent. There is no way to configure anything for Bacs DD in the Stripe UI (except upgrading to a payed version to show your business name on bank statements) → requires a conversation with support ([email protected]).

Edit: The error occurs when bacs_debit is in the list of 'payment_method_types' for a SetupIntent.

Note: confirmBacsDebitPayment() does not exists, can only be used with setup intents.

@codecov
Copy link

codecov bot commented Jul 1, 2021

Codecov Report

Merging #35 (b10ff93) into 7.x-2.x (0142b0d) will decrease coverage by 0.88%.
The diff coverage is 9.80%.

Impacted file tree graph

@@              Coverage Diff              @@
##             7.x-2.x      #35      +/-   ##
=============================================
- Coverage      25.23%   24.35%   -0.89%     
- Complexity       136      145       +9     
=============================================
  Files             17       20       +3     
  Lines            840      891      +51     
=============================================
+ Hits             212      217       +5     
- Misses           628      674      +46     
Impacted Files Coverage Δ
src/BacsCustomerDataForm.php 0.00% <0.00%> (ø)
src/BacsForm.php 0.00% <0.00%> (ø)
src/BacsController.php 17.39% <17.39%> (ø)
stripe_payment.module 42.38% <100.00%> (+0.38%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0142b0d...b10ff93. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant