/** * Overload the URL if a credit card is being passed. * * @return $this|bool */ public function save() { if (array_key_exists('customer', $this->attributes) && array_key_exists('fullname', $this->attributes['customer'])) { $this->name = 'subscriptions?new_customer=true'; } else { $this->name = 'subscriptions?new_customer=false'; } return parent::save(); }
/** * Overload the URL if a credit card is being passed. * * @return $this|bool */ public function save() { if (array_key_exists('billing_info', $this->attributes) && array_key_exists('credit_card', $this->attributes['billing_info'])) { $this->name = 'customers?new_vault=true'; } else { $this->name = 'customers?new_vault=false'; } return parent::save(); }
public function getAll() { $this->name = 'marketplace'; return parent::getAll(); }