duncanmcclean / simple-commerce

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

[6.x] Drop support for gateway being saved as strings on orders #969

Closed duncanmcclean closed 8 months ago

duncanmcclean commented 8 months ago

This pull request completely drops support for Simple Commerce reading gateway data in the legacy string format. Only the array format will be supported.

The array format was introduced quite a while ago now (in v2.4.0, see #498) so it's probably about time we rip of the bandaid and stop supporting it!. Good riddance strings!

Examples

Strings

gateway: \DoubleThreeDigital\SimpleCommerce\Gateways\Builtin\StripeGateway

Arrays

gateway: 
    use: \DoubleThreeDigital\SimpleCommerce\Gateways\Builtin\StripeGateway
    data: 
        id: pi_123456789
github-actions[bot] commented 7 months ago

Released as part of v6.0.0.