Discussions
Create Payment Error 45 Forbidden
Hi, I'm trying to launch the api create payment with the sandbox account.
I made all the previous step (create keyId, digest, signature and authentication all went good also checked with the test instrument you provided).
But when i launch the api create payment i keep getting error 45 Forbidden.
Here is my cURL:
curl --request POST
--url https://staging.authservices.satispay.com/g_business/v1/payments
--header 'Content-Type: application/json'
--header 'host: staging.authservices.satispay.com'
--header 'date: Mon, 01 Feb 2021 09:10:24 + 0100'
--header 'digest: SHA-256=jWjmI6cdwHPUs3tNU1lXxaKxar4Kee+elPnr1dj2Pqg=' \
--header 'Authorization: Signature keyId="ea5c7qg9240ign3spk5nq5625cu40t3q118r74s602b7jge3qd88odgfnmdjunrnjfoko7gegejtvnkib489occhmebiunad2587urmvtdbt2l4tp4effsej0k510pk0a4f4eausg7pd8vuflt34lcm8hk5mb0lok6gh9cnaukoaoh7tppc3h1dfvbvphfhjjqm16sn0", algorithm="rsa-sha256", headers="(request-target) host date digest", signature="H2zMqaEWR7fmaHhyYvq/nVgcnv7TKmlWcXvVfWh9L7n2zxhJSAwAwwojFXa61fCM7tWO7YFU59C5hFH+n9WHVeV1xNhATc2Nn8kbwtu1Vmc3wu3ebkWi7TA5K7QD991ctazULVTlpjlIZKLxROEFAegO22U/LgirHxbp+mXN5nClJyOQuiukW0808XZ2TOjbW4UteQuP/KO2MHcj5RxIhQD5szIiliUwyi5CHzuxD+4xMy0T9k4sad/wPFDwVxuCKIkcVKGjNoTLgdaNfDUUXAVRAJCKc9nQlrcvqMfGTI65+ly7vs9HxDsXN+8ck2iF/8E9ea/nKdnhJxzFSGTc635VS5o3mOqxGU9VOqwkQVUREcqyYo7Er+QI4fpkkXPcX0iJYRrilAhx4VON/lmNe2HQRHQwy8g8jNrFYdmiYwb5NetKewM57JP4OkoKwdC2hJR8UZHvkTQOKBpibntucduAuBHb6XENA+aBRb8oyrwbVn8sJO6voYTJk4yWLhDLZhJi4JSCKngeN/toT02/R9ObSiPiHPuAFnodnFZ77yLj9Jl+97/YtKRPzNVdekUz+KOUT0etlj/0fpW6RqmLIaXobsEk6FWM7CJkoX4U5EOc5Rgv1HcxZg1l50LXsCR7cXHEzvkV2CM5y2VoLftWAptPJhLJIaiQbivoJq+XFZ0="'
--data '{"flow":"MATCH_CODE","amount_unit":1,"currency":"EUR"}'
and that is my private key:
-----BEGIN RSA PRIVATE KEY-----
MIIJKAIBAAKCAgEAt4p61/VE+ub20N2wuKK/FvYkrAaebJDjwcJg3KF750dP7W5w
GzZ9HL3M+lNsHQXgyLnamdak/si18syj0LLLBb3EhhVJMoTYFtIy4vVMZnzUQuCW
GruliHza6NC8ZE95jpVNNhYEXqr9Ctm836IABplBmhJswuZC0jFSSzPPWh4mMqWU
kT8SY+B5oJ3HafbEneZrP5OsRHVNe55A8oa7H3qyIkIoNu5102QnZI4GiGUUekty
ZYZhKFhJw3Y+7OfPod1fRkE7cIj2lzO9vtOmS0aa1gWIzsGL9YUUz9VeVgi9ITzs
luMUMsbbrAKTrPnGXpAsagw5Q2OE2IM7WMDVgWajEdfZyYl8UAsvjM9Ku1/UsB13
UD7IfIEHlLLyuNX51VOFasINYMVZgaeZvoTfuuE1d8AMsRlINR/wafJgbYuItz9+
tP8LPDiAlf2Z4dBfZW32gqzaE5xFo0DfyyB0htvarC3KdC6wvITf7Y4vY2ChcNh+
gdJhoy+TLKF4C4zq6uWOzt9UqL1FozmfVGOzk6S9a5HPde9jsRd17bcix5uE89cH
T4rOh+3LU6VPffaaW0lS2zGhFXpUX0A9olxOpFGYhjY+VnpKNax77fhWEswWjGty
oRjmSRyUMpnC0K8BbY0shMGHbcAxNVboO/cgf4YPy+iZMujM8uA7D2mqhlcCAwEA
AQKCAgEAs4k/Tv554mCJMJiapJF2ENTn3GqBD7vPPpqQO2GvHPYx5hQwjz4GtlWn
K3rs95rnXhIHFpLTRPM6n+2zlJNAazZNBcfOmR8/bVtiMYY3nM0gqOadjjrd2pwf
WrvMfOcNBf9fzrdMwPnLmpCQ48TI96t0c2zwfNnWpVtfn3Znr0RsowA7SrU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