I'm attempting to submit payment with hard-coded fields for all the billing, shipping, and payment fields.
For the credit card, I have my own javascript code that's generating the token, which is being added into the HTML after it's returned. The page submits but then returns this error:
2018-04-06 13:51:01 [192.168.10.1][-][-][profile end][yii\db\Command::execute] INSERT INTO `craft_commerce_transactions` (`orderId`, `hash`, `gatewayId`, `type`, `status`, `amount`, `currency`, `paymentAmount`, `paymentCurrency`, `paymentRate`, `reference`, `message`, `code`, `response`, `userId`, `parentId`, `dateCreated`, `uid`, `dateUpdated`) VALUES (2023, 'c226f13a54c1046e3b8997bc6166d9a4', 2, 'purchase', 'failed', '5.99', 'USD', '5.99', 'USD', '1.0000', '', 'No such source: tok_1CE0aOC4hRhgOaLFOtD1D4Vu', 'resource_missing', '{\"error\":{\"type\":\"invalid_request_error\",\"message\":\"No such source: tok_1CE0aOC4hRhgOaLFOtD1D4Vu\",\"param\":\"\",\"code\":\"resource_missing\",\"doc_url\":\"https://stripe.com/docs/error-codes#resource-missing\"},\"id\":null,\"message\":\"No such source: tok_1CE0aOC4hRhgOaLFOtD1D4Vu\",\"code\":\"resource_missing\"}', NULL, NULL, '2018-04-06 19:51:01', '67e617f0-bfd1-4c1e-92d6-03986873e417', '2018-04-06 19:51:01')
Description
I'm attempting to submit payment with hard-coded fields for all the billing, shipping, and payment fields.
For the credit card, I have my own javascript code that's generating the token, which is being added into the HTML after it's returned. The page submits but then returns this error:
No such source: tok_1CE0hbC4hRhgOaLFGDvTQotGThe logs show this:
Steps to reproduce
Additional info