Changeset View
Changeset View
Standalone View
Standalone View
src/app/Providers/PaymentProvider.php
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | abstract class PaymentProvider | ||||
* @param \App\Wallet $wallet The wallet | * @param \App\Wallet $wallet The wallet | ||||
* @param array $payment Payment data: | * @param array $payment Payment data: | ||||
* - amount: Value in cents (wallet currency) | * - amount: Value in cents (wallet currency) | ||||
* - credit_amount: Balance'able base amount in cents (wallet currency) | * - credit_amount: Balance'able base amount in cents (wallet currency) | ||||
* - vat_rate_id: VAT rate id | * - vat_rate_id: VAT rate id | ||||
* - currency: The operation currency | * - currency: The operation currency | ||||
* - description: Operation desc. | * - description: Operation desc. | ||||
* - methodId: Payment method | * - methodId: Payment method | ||||
* - redirectUrl: The location to goto after checkout | |||||
* | * | ||||
* @return array Provider payment data: | * @return array Provider payment data: | ||||
* - id: Operation identifier | * - id: Operation identifier | ||||
* - redirectUrl: the location to redirect to | * - redirectUrl: the location to redirect to | ||||
*/ | */ | ||||
abstract public function createMandate(Wallet $wallet, array $payment): ?array; | abstract public function createMandate(Wallet $wallet, array $payment): ?array; | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 230 Lines • Show Last 20 Lines |