webshell
Ghost Exploiter Team Official
Mass Deface
Directory >>
/
home
/
whitjouh
/
public_html
/
core
/
vendor
/
mollie
/
mollie-api-php
/
examples
/
subscriptions
/
Mass Deface Auto Detect Domain
/*Ubah Ke document_root untuk mass deface*/
File / Folder
Size
Action
.
-
+New File
cancel-subscription.php
1.004KB
edt
ren
create-subscription.php
2.231KB
edt
ren
update-subscription.php
1.061KB
edt
ren
<?php /* * Updating an existing subscription via the Mollie API. */ try { /* * Initialize the Mollie API library with your API key or OAuth access token. */ require "../initialize.php"; /* * Retrieve an existing subscription */ $customer = $mollie->customers->get("cst_cUe8HjeBuz"); $subscription = $customer->getSubscription("sub_DRjwaT5qHx"); /** * Subscription fields that can be updated are described by the link: * See https://docs.mollie.com/reference/v2/subscriptions-api/update-subscription */ $subscription->times = 10; $subscription->startDate = '2018-12-02'; // Year-month-day $subscription->amount = (object)['value' => '12.12', 'currency' => 'EUR']; $subscription->webhookUrl = 'https://some-webhook-url.com/with/path'; $subscription->description = 'Monthly subscription'; $subscription->update(); echo "<p>Subscription updated: " . $subscription->id . "</p>"; } catch (\Mollie\Api\Exceptions\ApiException $e) { echo "API call failed: " . htmlspecialchars($e->getMessage()); }
<=Back
Liking