In-App payment information forwarding
You can define an optional URL where Fortumo makes an HTTP GET request with payment information every time your mobile payment application sends a payment message or billing status of the message changes. Most of the request parameters are similar to those of Mobile Payments / Premium SMS API, but there are some small differences. The answer from your server does not affect payment processing, the request is for informational purposes only.
Parameters
user_idservice_nameproduct_namepayment_codesendercountrypricecurrencyservice_idmessage_idkeywordshortcodeoperatorcredit_namecredit_amountbilling_typestatuspending, ok or failed.confirmation_codestatus parameter is not OK. The mobile application will check if confirmation code of a payment exists. If it exists, the application will proceed with the payment.testsig
It is important to make sure that the service script is called by Fortumo and not someone else. There are several security measures, that satisfy most of the service providers:
$_SERVER["REMOTE_ADDR"] variable.
sig parameter and is calculated as md5 checksum of the request parameters and secret concatenated together. You can make the same calculation and check whether the sig parameter in the request matches the one that you calculated. See the PHP example below to find out exactly how the calculation is made. NB! You can find two different shared secrets from the service general info page. Use the secret named "Secret". The other one, named "In-application secret", is used by the mobile application.