mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-04 17:20:09 +00:00
[stripe-v3] improve support for new PaymentIntents API (#35967)
* Update type definitions to support PaymentIntents * Update tests and revert some deletions * Fix linter errors * Fix additional linter warnings * Fix last of the linter errors
This commit is contained in:
committed by
Ben Lichtman
parent
c99bb17fe9
commit
2abde45e7a
1197
types/stripe-v3/index.d.ts
vendored
1197
types/stripe-v3/index.d.ts
vendored
File diff suppressed because it is too large
Load Diff
@@ -191,7 +191,7 @@ describe("Stripe elements", () => {
|
||||
if (result.error) {
|
||||
console.error(result.error.param);
|
||||
} else if (result.paymentMethod) {
|
||||
console.log(result.paymentMethod.card && result.paymentMethod.card.number);
|
||||
console.log(result.paymentMethod.card && result.paymentMethod.card.brand);
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -246,7 +246,7 @@ describe("Stripe elements", () => {
|
||||
if (result.error) {
|
||||
console.error(result.error.message);
|
||||
} else if (result.paymentIntent) {
|
||||
console.log(result.paymentIntent.shipping.address);
|
||||
console.log(result.paymentIntent.shipping && result.paymentIntent.shipping.address);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user