developermypos/myPOS-Mobile-Checkout-SDK-iOS

init failed

Opened this issue · 2 comments

bacy commented

2020-05-21 23:19:03.517013+0800 Runner[40944:14310329] Thu May 21 23:19:03 2020 [Mobile Payment SDK] Cannot get url for file 'private_key'
2020-05-21 23:19:03.517249+0800 Runner[40944:14310329] Thu May 21 23:19:03 2020 [Mobile Payment SDK] Private key data is nil
2020-05-21 23:19:03.517419+0800 Runner[40944:14310329] Thu May 21 23:19:03 2020 [Mobile Payment SDK] Private key file is corrupted

i dont know whats wrong. i make a private_key.pem file and copy to the bundle, but initialize failed whit the log above

Hi

Did you resolved the issue with private key? I have the same message with test data.

Don't know if still useful, anyway you should add both private key and public cert to two separate .txt files and add them to 'copy bundle resources' in Build Phases