Changeset View
Changeset View
Standalone View
Standalone View
src/app/Providers/PaymentProvider.php
Show First 20 Lines • Show All 255 Lines • ▼ Show 20 Lines | protected function storeRefund(Wallet $wallet, array $refund): void | ||||
'type' => $transaction_type, | 'type' => $transaction_type, | ||||
'amount' => $amount * -1, | 'amount' => $amount * -1, | ||||
'description' => $refund['description'] ?? '', | 'description' => $refund['description'] ?? '', | ||||
]); | ]); | ||||
$refund['status'] = self::STATUS_PAID; | $refund['status'] = self::STATUS_PAID; | ||||
$refund['amount'] = -1 * $amount; | $refund['amount'] = -1 * $amount; | ||||
// FIXME: Refunds/chargebacks are out of the reseller comissioning for now | |||||
vanmeeuwen: At the very least there's a spelling error in the word "commission", but since its also a FIXME… | |||||
$this->storePayment($refund, $wallet->id); | $this->storePayment($refund, $wallet->id); | ||||
} | } | ||||
/** | /** | ||||
* List supported payment methods from this provider | * List supported payment methods from this provider | ||||
* | * | ||||
* @param string $type The payment type for which we require a method (oneoff/recurring). | * @param string $type The payment type for which we require a method (oneoff/recurring). | ||||
* | * | ||||
▲ Show 20 Lines • Show All 117 Lines • Show Last 20 Lines |
At the very least there's a spelling error in the word "commission", but since its also a FIXME, that's not even what I seek to point out.