mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Add meta data to checkout payments
This commit is contained in:
parent
23d6a69573
commit
6f5145a049
@ -170,6 +170,7 @@ class CreditCard implements MethodInterface
|
||||
|
||||
private function completePayment($method, PaymentResponseRequest $request)
|
||||
{
|
||||
|
||||
$payment = new Payment($method, $this->checkout->payment_hash->data->currency);
|
||||
$payment->amount = $this->checkout->payment_hash->data->value;
|
||||
$payment->reference = $this->checkout->getDescription();
|
||||
@ -178,6 +179,10 @@ class CreditCard implements MethodInterface
|
||||
'email' => $this->checkout->client->present()->email(),
|
||||
];
|
||||
|
||||
$payment->metadata = [
|
||||
'udf1' => "Invoice Ninja",
|
||||
];
|
||||
|
||||
$this->checkout->payment_hash->data = array_merge((array)$this->checkout->payment_hash->data, ['checkout_payment_ref' => $payment]);
|
||||
$this->checkout->payment_hash->save();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user