post https://api.pay-link.eu/v1.0/Gateway/
Responses
xxxxxxxxxx
16apiSignature=`echo -n "amount=8925&vatRate=7.7¤cy=CHF&sku=P01122000&pm%5B0%5D=visa&preAuthorization=0&reservation=0&referenceId=975382&fields%5Bforename%5D%5Bvalue%5D=Max&fields%5Bsurname%5D%5Bvalue%5D=Mustermann&fields%5Bemail%5D%5Bvalue%5D=max.mustermann%40mysite.com&successRedirectUrl=https%3A%2F%2Fwww.merchant-website.com%2Fsuccess&failedRedirectUrl=https%3A%2F%2Fwww.merchant-website.com%2Ffailed" | openssl dgst -sha256 -hmac "INSTANCE_API_SECRET" -binary | openssl enc -base64`
curl --request POST "https://api.pay-link.eu/v1.0/Gateway/?instance=INSTANCE_NAME" \
--data-urlencode "amount=8925" \
--data-urlencode "vatRate=7.7" \
--data-urlencode "currency=CHF" \
--data-urlencode "sku=P01122000" \
--data-urlencode "pm[0]=visa" \
--data-urlencode "preAuthorization=0" \
--data-urlencode "reservation=0" \
--data-urlencode "referenceId=975382" \
--data-urlencode "fields[forename][value]=Max" \
--data-urlencode "fields[surname][value]=Mustermann" \
--data-urlencode "fields[email][value]=max.mustermann@mysite.com" \
--data-urlencode "successRedirectUrl=https://www.merchant-website.com/success" \
--data-urlencode "failedRedirectUrl=https://www.merchant-website.com/failed" \
--data-urlencode "ApiSignature=$apiSignature"