diff --git a/src/Paystack.php b/src/Paystack.php index 0aa42dc..cac1a96 100644 --- a/src/Paystack.php +++ b/src/Paystack.php @@ -546,6 +546,23 @@ public function fetchSubscription($subscription_id) return $this->setHttpResponse('/subscription/'.$subscription_id, 'GET', [])->getResponse(); } + /** + * Charge returning customers + * Used for reccurring charges + */ + public function chargeAuthorizedCard() + { + $data = [ + "authorization_code" => request()->authorization_code, + "email" => request()->email, + "amount" => intval(request()->amount), + ]; + + $this->setRequestOptions(); + + return $this->setHttpResponse("/transaction/charge_authorization", 'POST', $data)->getResponse(); + } + /** * Create pages you can share with users using the returned slug */