Missing Signature error
Opened this issue · 2 comments
2021-09-15 09:09:51.499348+0200 PocPayments[543:176802] Wed Sep 15 09:09:51 2021 [Mobile Payment SDK] Initializing...
2021-09-15 09:09:51.502710+0200 PocPayments[543:176802] Wed Sep 15 09:09:51 2021 [Mobile Payment SDK] Initialized
2021-09-15 09:09:51.502906+0200 PocPayments[543:176802] [native] Pretending to adding a card through the SDK
2021-09-15 09:09:53.541758+0200 PocPayments[543:176604] Can't find keyplane that supports type 4 for keyboard iPhone-PortraitChoco-NumberPad; using 25752_PortraitChoco_iPhone-Simple-Pad_Default
2021-09-15 09:09:53.575692+0200 PocPayments[543:176604] Can't find keyplane that supports type 4 for keyboard iPhone-PortraitChoco-NumberPad; using 25752_PortraitChoco_iPhone-Simple-Pad_Default
2021-09-15 09:09:54.397429+0200 PocPayments[543:176797] [general] Connection to daemon was invalidated
2021-09-15 09:09:55.831852+0200 PocPayments[543:176604] Can't find keyplane that supports type 4 for keyboard iPhone-PortraitChoco-NumberPad; using 25752_PortraitChoco_iPhone-Simple-Pad_Default
2021-09-15 09:09:58.074632+0200 PocPayments[543:176604] Can't find keyplane that supports type 4 for keyboard iPhone-PortraitChoco-NumberPad; using 25752_PortraitChoco_iPhone-Simple-Pad_Default
2021-09-15 09:10:08.117159+0200 PocPayments[543:176604] Can't find keyplane that supports type 4 for keyboard iPhone-PortraitChoco-NumberPad; using 25752_PortraitChoco_iPhone-Simple-Pad_Default
2021-09-15 09:10:09.683537+0200 PocPayments[543:176604] Can't find keyplane that supports type 4 for keyboard iPhone-PortraitChoco-NumberPad; using 25752_PortraitChoco_iPhone-Simple-Pad_Default
2021-09-15 09:10:13.018203+0200 PocPayments[543:176604] [Snapshotting] Snapshotting a view (0x10618f410, _UIReplicantView) that has not been rendered at least once requires afterScreenUpdates:YES.
2021-09-15 09:10:14.802177+0200 PocPayments[543:176604] [Snapshotting] Snapshotting a view (0x108916b70, _UIReplicantView) that has not been rendered at least once requires afterScreenUpdates:YES.
2021-09-15 09:10:17.751859+0200 PocPayments[543:176802] Wed Sep 15 09:10:17 2021 [Mobile Payment SDK] Data to sign: en-IPCIATdsBin-EUR-61938166610-1-000000000000010-1.0-1.4-json-cF1DXQIvcTyrTb0D18LiUgz6s8B+wJH5aKOeDgVgqdt2RLKyRzX9oX5NWxLbo9ogo1bRXWspFR4em7GoHTLq0j+/yonXC82Do9gxKKXd5QD11Bf93lO5Yh1EfVQp2Zl06Fe/FFwPdaksJ+kykjovQUNM1DbURTEvl2pPg90zhSA=
2021-09-15 09:10:17.752355+0200 PocPayments[543:176802] Wed Sep 15 09:10:17 2021 [Mobile Payment SDK] Base64 data to sign: ZW4tSVBDSUFUZHNCaW4tRVVSLTYxOTM4MTY2NjEwLTEtMDAwMDAwMDAwMDAwMDEwLTEuMC0xLjQtanNvbi1jRjFEWFFJdmNUeXJUYjBEMThMaVVnejZzOEIrd0pINWFLT2VEZ1ZncWR0MlJMS3lSelg5b1g1Tld4TGJvOW9nbzFiUlhXc3BGUjRlbTdHb0hUTHEwaisveW9uWEM4MkRvOWd4S0tYZDVRRDExQmY5M2xPNVloMUVmVlFwMlpsMDZGZS9GRndQZGFrc0ora3lram92UVVOTTFEYlVSVEV2bDJwUGc5MHpoU0E9
2021-09-15 09:10:17.753082+0200 PocPayments[543:176802] Wed Sep 15 09:10:17 2021 [Mobile Payment SDK] Base64 data to sign FIXED: ZW4tSVBDSUFUZHNCaW4tRVVSLTYxOTM4MTY2NjEwLTEtMDAwMDAwMDAwMDAwMDEwLTEuMC0xLjQtanNvbi1jRjFEWFFJdmNUeXJUYjBEMThMaVVnejZzOEIrd0pINWFLT2VEZ1ZncWR0MlJMS3lSelg5b1g1Tld4TGJvOW9nbzFiUlhXc3BGUjRlbTdHb0hUTHEwaisveW9uWEM4MkRvOWd4S0tYZDVRRDExQmY5M2xPNVloMUVmVlFwMlpsMDZGZS9GRndQZGFrc0ora3lram92UVVOTTFEYlVSVEV2bDJwUGc5MHpoU0E9
2021-09-15 09:10:17.758920+0200 PocPayments[543:176802] Wed Sep 15 09:10:17 2021 [Mobile Payment SDK] Verifying card...
2021-09-15 09:10:17.759198+0200 PocPayments[543:176802] Wed Sep 15 09:10:17 2021 [Mobile Payment SDK] Request: https://www.mypos.eu/vmp/checkout?IPCLanguage=en&IPCMethod=IPCIATdsBin&Currency=EUR&Walletnumber=61938166610&KeyIndex=1&SID=000000000000010&version=1.0&IPCVersion=1.4&OutputFormat=json&PAN=cF1DXQIvcTyrTb0D18LiUgz6s8B%2BwJH5aKOeDgVgqdt2RLKyRzX9oX5NWxLbo9ogo1bRXWspFR4em7GoHTLq0j%2B%2FyonXC82Do9gxKKXd5QD11Bf93lO5Yh1EfVQp2Zl06Fe%2FFFwPdaksJ%2BkykjovQUNM1DbURTEvl2pPg90zhSA%3D&Signature=QtEN5NmydHvF9u3tneC3%2Ftm4r5ZajvH5D2FAPnHJSm5MVIK%2FypdjQLgeH1Jvx%2FtjWIRkWlIEl9DaFkLAA9JmRIEAMo6C0TVRvJStlLjVehCFhYNSHxNGNVH8M%2BPciBjbljwUpr4e4RWn8ME%2F2foV3so9St37Jigbbv04Xm8%2FOeY%3D
2021-09-15 09:10:18.910463+0200 PocPayments[543:176604] Wed Sep 15 09:10:18 2021 [Mobile Payment SDK] <__NSArrayM 0x281e32370>(
{"Status":3,
StatusMsg":"E_GENERAL_ERROR",
Signature":""}
)
2021-09-15 09:10:18.910983+0200 PocPayments[543:176604] Wed Sep 15 09:10:18 2021 [Mobile Payment SDK] Response: {
Signature = "";
Status = 3;
StatusMsg = "E_GENERAL_ERROR";
}
2021-09-15 09:10:18.911199+0200 PocPayments[543:176604] Wed Sep 15 09:10:18 2021 [Mobile Payment SDK] Status: 3 - E_GENERAL_ERROR
2021-09-15 09:10:18.911343+0200 PocPayments[543:176604] Wed Sep 15 09:10:18 2021 [Mobile Payment SDK] Validating response...
2021-09-15 09:10:18.911595+0200 PocPayments[543:176604] Wed Sep 15 09:10:18 2021 [Mobile Payment SDK] Signature must match 3-E_GENERAL_ERROR
2021-09-15 09:10:18.911784+0200 PocPayments[543:176604] Wed Sep 15 09:10:18 2021 [Mobile Payment SDK] Missing signature
2021-09-15 09:10:18.911937+0200 PocPayments[543:176604] Wed Sep 15 09:10:18 2021 [Mobile Payment SDK] Response is invalid
More details to follow.
I'm using the test data as mentioned here
The same error occurs even I configure the sdk via the withConfigurationKey
parameter
[MPCheckout initializeInCurrency:MPCurrencyEUR withConfigurationKey:@"eyJzaWQiOiIwMDAwMDAw...I6MX0="];
the value withConfigurationKey
is taken HERE in the Easy setup section
By looking closely at the url of the request
https://www.mypos.eu/vmp/checkout?IPCLanguage=en&IPCMethod=IPCIATdsBin&Currency=EUR&Walletnumber=61938166610&KeyIndex=1&SID=000000000000010&version=1.0&IPCVersion=1.4&OutputFormat=json&PAN=cF1DXQIvcTyrTb0D18LiUgz6s8B%2BwJH5aKOeDgVgqdt2RLKyRzX9oX5NWxLbo9ogo1bRXWspFR4em7GoHTLq0j%2B%2FyonXC82Do9gxKKXd5QD11Bf93lO5Yh1EfVQp2Zl06Fe%2FFFwPdaksJ%2BkykjovQUNM1DbURTEvl2pPg90zhSA%3D&Signature=QtEN5NmydHvF9u3tneC3%2Ftm4r5ZajvH5D2FAPnHJSm5MVIK%2FypdjQLgeH1Jvx%2FtjWIRkWlIEl9DaFkLAA9JmRIEAMo6C0TVRvJStlLjVehCFhYNSHxNGNVH8M%2BPciBjbljwUpr4e4RWn8ME%2F2foV3so9St37Jigbbv04Xm8%2FOeY%3D
the base url is not the sandbox url https://www.mypos.eu/vmp/checkout-test
but the production url https://www.mypos.eu/vmp/checkout
, even though I have specified the isSandbox:true in the configuration
[MPCheckout initializeWithAccountNumber:MYPOS_WALLET_NUMBER
storeId:MYPOS_SID
currency:MPCurrencyEUR
certificate:@"publiccert"
privateKey:@"privatecert"
bundle:[NSBundle mainBundle]
keyIndex:1
isSandbox:true];
As a reminder: I'm still working in sandbox mode