duncanmcclean / simple-commerce

A simple, yet powerful e-commerce addon for Statamic.
https://statamic.com/addons/duncanmcclean/simple-commerce
Other
145 stars 38 forks source link

Gateway in OrderPaid event: `gateway` set to Gateway object instead of the class name. #820

Closed duncanmcclean closed 1 year ago

duncanmcclean commented 1 year ago

Description

From customer:

However, I might have spotted a glitch (not sure). This sets use to the gateway object, not the class name. Is that right? In the GatewayFieldtype::augment() method I think it's expecting a class name, so when you call $order['gateway']->value() it gives you null instead of the gateway data.

Related to #817

Steps to reproduce

n/a

Environment

Latest v4

duncanmcclean commented 1 year ago

Fixed in 2a27f8f