mollie / laravel-mollie

Mollie API client wrapper for Laravel & Mollie Connect provider for Laravel Socialite
https://www.mollie.com/
MIT License
326 stars 63 forks source link

Mandate creation error #230

Closed AlphaNimmi closed 1 year ago

AlphaNimmi commented 1 year ago
    $mandate = $customer->createMandate([
        "method" => \Mollie\Api\Types\MandateMethod::DIRECTDEBIT,
        "consumerAccount" => 'NL34ABNA0243341423',
        "consumerName" => 'B. A. Example',
    ]);

  $subscription = $customer->createSubscription([
                "amount" => [
                    "value" => $price_to_charge_formatted, 
                    "currency" =>  $_ENV["CURRENCY"],
                ],
                "times" => 12,
                "interval" => $interval,
                "description" => "Subscription ",
                'webhookUrl' => site_url('mollie_webhook') ,
                "metadata" => [
                    'user_id' => $user_id,
                    'plan_id_id' => $plan_id_id,
                    'care_type' => $care_type
                ],
            ]);

Create mandate like this and subscription.But its showing Subscriptions as active and and Transactions as pending

Description Subscription Amount €79.99 Payment ID tr_oZwhgYghLG Status PENDING Customer reference cst_2ySjDSMcBW Subscription reference sub_8SUFZhdrug Mode test Created at 6 July 2023 at 22:20 Webhook URL https://wealthyplaymates.com/mollie_webhook SEPA Direct Debit Amount €79.99 Transfer reference SD11-1036-0707-6929 Creditor identifier NL08ZZZ502057730000 Consumer name nimmmi IBAN NL34ABNA0243341423

Due date 10 July 2023 Signature date 6 July 2023

When i contact with customer care they told Because you can’t test SEPA Direct Debit recurring payments. Since we never receive an actual payment which triggers the paid status with Sepa Direct Debit. I would rather advise you to test Creditcard recurring payments since it is the same testing flow.

sandervanhooft commented 1 year ago

Hi,

Thanks for opening this ticket.

In order for me to help you better: What is your question here?

sandervanhooft commented 1 year ago

Closing this for now, let me know if it should be reopened.