mothership-ec / cog-mothership-ecommerce

Mothership E-Commerce
Other
2 stars 1 forks source link

Use default gateway when creating orders if not set on session #269

Closed thomasjthomasj closed 8 years ago

thomasjthomasj commented 8 years ago

When paying with SagePay, the order is temporarily stored in the cache as the session is not available at the point of order creation. This means that the gateway is not on the session. In this instance, it will default to the primary gateway, rather than passing NULL to the payment.gateway.edit class, which threw an error.

See https://github.com/mothership-ec/cog-mothership-ecommerce/issues/268