PATH:
home
/
lab2454c
/
sportsnovate.com
/
backups
/
core
/
vendor
/
mollie
/
mollie-api-php
/
examples
/
orders
<?php /* * How to get the currently activated payment methods for the Orders API. */ try { /* * Initialize the Mollie API library with your API key. * * See: https://www.mollie.com/dashboard/developers/api-keys */ require "../initialize.php"; /* * Get all the activated methods for this API key. * To get methods that are compatible with the Orders API * we are passing the 'resource' parameter. */ $methods = $mollie->methods->all(['resource' => 'orders']); foreach ($methods as $method) { echo '<div style="line-height:40px; vertical-align:top">'; echo '<img src="' . htmlspecialchars($method->image->size1x) . '" srcset="' . htmlspecialchars($method->image->size2x) . ' 2x"> '; echo htmlspecialchars($method->description) . ' (' . htmlspecialchars($method->id) . ')'; echo '</div>'; } } catch (\Mollie\Api\Exceptions\ApiException $e) { echo "API call failed: " . htmlspecialchars($e->getMessage()); }
[-] refund-order-partially.php
[edit]
[-] update-order.php
[edit]
[+]
..
[-] webhook.php
[edit]
[-] list-orders.php
[edit]
[-] list-methods.php
[edit]
[-] refund-order-completely.php
[edit]
[-] cancel-order.php
[edit]
[-] update-order-line.php
[edit]
[-] cancel-order-lines.php
[edit]
[-] create-order.php
[edit]