mollie / mollie-api-php

Mollie API client for PHP
http://www.mollie.com
BSD 2-Clause "Simplified" License
550 stars 189 forks source link

Using multiple payment methods. #122

Closed sjorsvanheuveln closed 6 years ago

sjorsvanheuveln commented 6 years ago

I want to use a selection of payment methods. Currently I only have ideal. How can I expand this? Say I only want to use PayPal, iDeal and Bancontact. How do I do this?

$payment = $mollie->payments->create(array( "amount" => $amount, "description" => $_GET['upgrade']." Maand(en) Premium Upgrade", "redirectUrl" => "http://mysite.nl/return_page.php?months={$months}", "webhookUrl" => "http://mysite.nl/betaaltest/02-webhook-verification.php", "method" => 'ideal', "metadata" => array( "order_id" => $order_id, "uid" => $_SESSION['uid'], "months" => $months, ), ));

willemstuursma commented 6 years ago

You should enable the correct payment methods in your Dashboard and then leave the method parameter blank.