Replies: 2 comments
-
@goraxan That is the expected value for that paymentSourceId column. The attribute on the order is used just during the payment process. More details: https://github.com/craftcms/commerce/blob/develop/src/elements/Order.php#L1611-L1614 We’ll be looking into saving the paymentSourceId in the transaction table In future releases. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@pdaleramirez oh, I see. Associating it to the transaction instead of the order makes sense, thank you! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What happened?
Description
When paying, the payment source is saved correctly when using the
savePaymentSource
in thepaymentsources
table but thepaymentSourceId
column from the orders table is not populated, so I'm not able to know which payment source is used to which order.This is the request to commerce/payments/pay controller
The paymentsource correctly created
The order not being updated correctly (both gatewayId and paymentSourceId are NULL)
Craft CMS version
4.3.6.1
Craft Commerce version
4.2.4
PHP version
8.0.26
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
Beta Was this translation helpful? Give feedback.
All reactions