Skip to content

v3.0.2

Latest

Choose a tag to compare

@PatrickePatate PatrickePatate released this 07 Sep 15:03
v3.0.2
f79d573

v3.0.2

Warning

v3.0.0 and v3.0.1 shipped with a broken composer.json: the SystemPaySystempay rename
dropped the full namespace from extra.laravel.providers/aliases, so Laravel's package
auto-discovery silently failed to register the service provider and facade. If you're on
v3.0.0 or v3.0.1, upgrade to v3.0.2.

Fixed

  • Fixed package auto-discovery by restoring the fully-qualified class names in composer.json.

Breaking changes (since v2.1.0)

  • Classes renamed from SystemPay to Systempay (Systempay, Facades\Systempay,
    SystempayServiceProvider, and all Exceptions\* classes). The SystemPay facade alias itself
    is unchanged — only direct class imports need updating.

  • IPN webhook handling consolidated into a WebhookPayload object. validateSignature(),
    isValidPayment(), retrieveOrderAndTransaction(), and retrievePaymentAmountAndCurrency() are
    removed from the facade. Use formatWebhookPayload() instead:

    // Before
    SystemPay::validateSignature($request);
    SystemPay::isValidPayment($request);
    [$orderId, $transId, $uuid] = SystemPay::retrieveOrderAndTransaction($request);
    [$amount, $currency] = SystemPay::retrievePaymentAmountAndCurrency($request);
    
    // After
    $payload = SystemPay::formatWebhookPayload($request);
    $payload->validateSignature();
    $payload->isValidPayment();
    $payload->orderId; $payload->transactionId; $payload->transactionUuid;
    $payload->amount; $payload->currencyCode;
  • Config: REST API password moved under rest. Update your published config/systempay.php:

    // Before
    'password' => env('SYSTEMPAY_REST_API_PASSWORD'),
    
    // After
    'rest' => [
        'password' => env('SYSTEMPAY_REST_API_PASSWORD'),
    ],

Full Changelog: v2.1.0...v3.0.2