| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <?php
- /*
- |--------------------------------------------------------------------------
- | BagistoApi Configuration
- |--------------------------------------------------------------------------
- |
- | Switches for the BagistoApi payment / express-checkout flow.
- |
- */
- return [
- /*
- |--------------------------------------------------------------------------
- | Express Checkout
- |--------------------------------------------------------------------------
- |
- | express_checkout.enabled
- | Master switch for the quick (no email/address) payment path.
- |
- | express_checkout.cancel_without_address
- | Strategy for "registered customer cancels express payment AND order
- | has no shipping address" scenario:
- | - "cancel" (default) cancel the order immediately.
- | - "keep_pending" leave order pending; caller can call paymentReplay
- | later or operations team can intervene via the
- | `bagistoapi.express.cancel.no-address` event.
- |
- | express_checkout.placeholder_address
- | Placeholder address used for the pre-payment order when no real
- | shipping address is known yet. Re-written from the gateway response
- | on a successful capture callback.
- */
- 'express_checkout' => [
- 'enabled' => env('BAGISTOAPI_EXPRESS_CHECKOUT_ENABLED', true),
- 'cancel_without_address' => env('BAGISTOAPI_EXPRESS_CANCEL_WITHOUT_ADDRESS', 'cancel'),
- 'placeholder_address' => [
- 'first_name' => 'Express',
- 'last_name' => 'Checkout',
- 'email' => 'express-checkout@placeholder.local',
- 'address' => 'Pending gateway response',
- 'city' => 'Pending',
- 'state' => 'Pending',
- 'country' => 'US',
- 'postcode' => '00000',
- 'phone' => '0000000000',
- ],
- ],
- /*
- |--------------------------------------------------------------------------
- | Payment Reconciliation Job
- |--------------------------------------------------------------------------
- |
- | reconcile.enabled
- | Toggle the delayed reconciliation job that polls the gateway after
- | `delay_minutes` if the order is still PENDING.
- |
- | reconcile.delay_minutes
- | How long to wait before a pending order is reconciled against the
- | gateway.
- |
- | reconcile.queue
- | Name of the queue the reconciliation job is dispatched onto. Operators
- | can route this to a dead-letter capable broker (e.g. RabbitMQ) via the
- | Laravel queue config without touching code.
- */
- 'reconcile' => [
- 'enabled' => env('BAGISTOAPI_PAYMENT_RECONCILE_ENABLED', true),
- 'delay_minutes' => (int) env('BAGISTOAPI_PAYMENT_RECONCILE_DELAY', 15),
- 'queue' => env('BAGISTOAPI_PAYMENT_RECONCILE_QUEUE', 'payment-reconcile'),
- ],
- ];
|