Good evening everyone, I'm integrating the Moip SDK (a payment gateway) but my knowledge is more in swift (I started the studies a few months ago).
They make sdk available for encryption of sensitive credit card data, however I'm getting a seemingly simple error but I do not know how to solve it, as if it were missing a square bracket in the line of code.
#import "MoipCrypt.h"
#import <MoipSDK/MoipSDK.h>
@implementation MoipCrypt
NSString *myPublicKey = @"-----BEGIN PUBLIC KEY-----CHAVE PUBLICA-----END PUBLIC KEY-----";
[MoipSDK importPublicKey:myPublicKey];
@end
The error is in the line
[MoipSDK importPublicKey:myPublicKey];
Where the following messages appear:
Expected ']' Expected identifier or '(' Missing '[' at start of message send expression
Even the solution given by xcode ("Insert ';'") only causes other syntax errors.
The sdk github link is as follows:
Thank you all for the help.