put https://api.pay-link.eu/v1.0/Subscription//
Response
xxxxxxxxxx
22<?php
// $instanceName is a part of the url where you access your paylink installation.
// https://{$instanceName}.pay-link.eu
$instanceName = 'YOUR_INSTANCE_NAME';
// $secret is the paylink secret for the communication between the applications
// if you think someone got your secret, just regenerate it in the paylink administration
$secret = 'YOUR_SECRET';
$paylink = new \Paylink\Paylink($instanceName, $secret);
$subscription = new \Paylink\Models\Request\Subscription();
$subscription->setId(1);
$subscription->setAmount(500);
$subscription->setCurrency('CHF');
$subscription->setPurpose('Test');
try {
$response = $paylink->update($subscription);
var_dump($response);
} catch (\Paylink\PaylinkException $e) {
print $e->getMessage();
}