Skip to content

Paystack Subscription Creation - Recurring Payment #175

@balakumarcgvak

Description

@balakumarcgvak

Hi Team,
We have an individual Paystack account for our website subscription plan; we also created the plan in our "Paystack Dashboard" and properly configured the plan code in the "Payment Functionalities", After the payment confirmation, we create a subscription using the customer details with the plan code.

$paymentDetails = Paystack::getPaymentData();
$data=array(
"customer" =>$paymentDetails['data']['customer']['customer_code'],
"plan"=> "PLN_dz6e6epbra53as8",
);
print_r($data);
// Create the subscription
$response = Paystack::createSubscription($data);
We got some response errors in the subscription creation.
"Client error: POST https://api.paystack.co/subscription resulted in a 404 Not Found response: {"status":false,"message":"A customer with the specified email or code was not found"}"

Pleas help on this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions