(PECL xcommerce >= 1.0.2)
Xcom::getOnboardingURL — Generate an onboarding URL
$capability_name
, string $agreement_url
)Generate an onboarding URL which can be given to the user to authorize your capability.
capability_name
The capability name, such as "FooBar Inc.'s Calculator"
agreement_url
A URL to any additional agreements which would be presented to users during the onboarding.
Returns the URL, or FALSE
on failure.
Exemple #1 Xcom::getOnboardingURL() example
<?php
$xcom = new Xcom(XCOM_FABRIC_SANDBOX, "fabric_token", "capability_token");
var_dump($xcom->getOnboardingURL("Shipping Service", "http://legal.com/bar"));
/*
* Output:
* https://devportal.x.com/go/here
*/
?>