method refundPayment documentation in bbn\Api\Permissions\MollieManager

Creates a Refund on the Payment. The refunded amount is credited to your customer.

https://docs.mollie.com/reference/v2/refunds-api/create-refund

function(string $payment_id, string $amount, array $params = []) { $payment = $this->mollie->payments->get($payment_id, ['testmode' => !empty($params['testmode'])]); $params = array_merge([ "amount" => [ "currency" => $payment->amount->currency, "value" => $amount ] ], $params); $refund = $payment->refund($params); return X::toArray($refund); }

Creates a Refund on the Payment. The refunded amount is credited to your customer. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.