#joshandrews43
1 messages · Page 1 of 1 (latest)
Im just curious since I don't understand the point of this endpoint then: https://stripe.com/docs/api/issuing/cards/test_mode_ship
Hmm yeah that's a good point
Give me a moment
Hmm okay actually my test card does show pending
How are you creating the Issuing Card exactly?
Sure, can you show me the code you are using to create the Issuing Card?
Ya one sec
schoolId here just gets the connected account for that customer
its an issued card on the connected account
export const formatShipping = (
shipping?: CreateIssuingCardParams['shippingInfo'],
): Stripe.Issuing.CardCreateParams['shipping'] =>
shipping
? {
name: shipping.name,
address: {
line1: shipping.addressLine1,
line2: shipping.addressLine2,
city: shipping.city,
state: shipping.state,
postal_code: shipping.zip,
country: 'US',
},
}
: undefined;```
For completeness I added my code for formatting the shipping object
Can you also provide an example Card ID that you created?
ic_1MAdtT2HYio6TkGSJX7busF2
No problem sir
The webhooks were all called automatically, it did go through all the phases
Thanks, seems like you are doing everything correctly. I'm checking with a colleague give me a moment
Ah okay!
Figured it out
We added this in a newer API version
So you need to be on at least 2022-08-01
So you can use versioning (https://stripe.com/docs/api/versioning) or update your default
(Be very careful updating your default if you have anything live on this account!!)