Commit 176e5b0
committed
fix(stripe_js): pass clientSecret and data as positional args to verifyMicrodeposits
Stripe.js exposes verifyMicrodepositsForPayment and verifyMicrodepositsForSetup
as (clientSecret, data) — two positional arguments — not as a single options
object. The previous bindings merged the two into {clientSecret, ...data}.jsify(),
which produced a call shaped like verifyMicrodeposits({clientSecret, amounts, ...})
and does not match the Stripe.js signature.
Update both external interop declarations to take (String clientSecret, [JSAny?
data]) and the Dart wrappers to call them with two arguments, matching the same
pattern used by confirmCardPayment / confirmP24Payment / etc.1 parent 4f0562b commit 176e5b0
2 files changed
Lines changed: 12 additions & 16 deletions
File tree
- packages/stripe_js/lib/src/js
- payment_intents
- setup_intents
Lines changed: 6 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
23 | 20 | | |
24 | 21 | | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
28 | 25 | | |
29 | | - | |
30 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
31 | 29 | | |
Lines changed: 6 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
23 | 20 | | |
24 | 21 | | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
28 | 25 | | |
29 | | - | |
30 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
31 | 29 | | |
0 commit comments