Basic API for Sumup Payment Widget.
More documentation: https://developer.sumup.com/api or https://developer.sumup.com/online-payments/tools/card-widget- Call the class (@string, e.g
sup_sk_xxx
)
$api = new sumupApi($token)
- Checkout informations (@string)
$api->getCheckout($id)
- Create checkout (@int [must be unique], @double, @string, @string)
$api->createCheckout($reference, $amount, $redirect_url, $gateway_url)
Tip
In $gateway_url
string you can use %s
variable for $id
.
- Delete checkout (@string)
$api->deleteCheckout($id)
- Transaction informations (@string [transaction_id])
$api->getTransaction($id)
- Print the current error
$api->_error