Error Undefined plugin Cocoapods

nativescriptcore
plugins
ios

#1

I recently added the following pod: https://github.com/ajamaica/BRConekta-IOS , but every time I try to access the methods, it sends me undefined

My class:

import { Common } from './conekta-tokenizer.common';

declare const Conekta: any;

export class ConektaTokenizer extends Common {

    createToken(options: ConektaOptions): Promise<string> {
        return new Promise(function (resolve, reject) {
            var conekta = Conekta.alloc().init();

            conekta.setDelegate(this);
            conekta.setPublicKey("key_eYvWV7gSDkNYXsmr");
            conekta.collectDevice();
        
            var card = conekta.Card.setNumber("4242424242424242")
                                    .name("Julian Ceballos")
                                    .cvc("123")
                                    .expMonth("10")
                                    .expYear("2018");
        
            var token = conekta.Token.initWithCard(card);
            
            token.createWithSuccess(function(data) {
                resolve(data);
            }, function(error) {
                 reject(error);
           });

        });
    }
}

export interface ConektaOptions {
    name: string;
    numberCard: string;
    cvc: string;
    expMonth: string;
    expYear: string;
    publicKey: string;
}

TypeError:

conekta.setDelegate is not a function. (In ‘conekta.setDelegate(this)’, ‘conekta.setDelegate’ is undefined)