Skip to content

[4.x]: Payment source is not associated to the order #3099

@goraxan

Description

@goraxan

What happened?

Description

When paying, the payment source is saved correctly when using the savePaymentSource in the paymentsources table but the paymentSourceId 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
image

The paymentsource correctly created
image

The order not being updated correctly (both gatewayId and paymentSourceId are NULL)
image

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

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions