- Issue created by @Anybody
As a helper for frontend actions based on subscriptionJS: https://developer.billwerk.io/docs/subscriptionJS/overview
it might be helpful to provide it from the module including the helpers to get the selfServiceToken for the user.
See https://developer.billwerk.io/docs/subscriptionJS/setup
Might be provided as Drupal external library definition?
The selfServiceToken retrieval is already available via
public function getSelfserviceTokenArray(string $contractId): array {
return $this->get(self::$contractResource . $contractId . "/selfServiceToken");
}
in BillwerkApi.php
Active
1.0
Code