mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
pass correct $customer->id
This commit is contained in:
parent
5457838c4d
commit
54014d93ee
@ -131,10 +131,13 @@ class CreditCard
|
||||
$this->stripe->payment_hash->save();
|
||||
|
||||
if ($this->stripe->payment_hash->data->store_card) {
|
||||
$customer = $this->stripe->findOrCreateCustomer();
|
||||
$customer = new \stdClass;
|
||||
$customer->id = $this->stripe->payment_hash->data->customer;
|
||||
|
||||
$this->stripe->attach($this->stripe->payment_hash->data->server_response->payment_method, $customer);
|
||||
|
||||
|
||||
$stripe_method = $this->stripe->getStripePaymentMethod($this->stripe->payment_hash->data->server_response->payment_method);
|
||||
|
||||
$this->storePaymentMethod($stripe_method, $this->stripe->payment_hash->data->payment_method_id, $customer);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user