#foxhop-elements-automation
1 messages · Page 1 of 1 (latest)
yes, I have functional tests which expect to be able to submit the Element form to create a Customer's PaymentMethod
And further on in the functional test we make a charge & verify both sides
yeah there's no real guide for this
res = self.testapp.post(
"/billing/add-card?shop_id={}".format(shop.id),
{
"email": self.user2.email,
"stripeToken": "tok_visa",
},
)
that's the old test code, suppose "tok_visa" isn't a way to mock the response
ah I see, you can use the newer token values like pm_card_visa
Do you have a link to that?