Skip to content
This repository was archived by the owner on Aug 27, 2024. It is now read-only.
This repository was archived by the owner on Aug 27, 2024. It is now read-only.

Using STPAddCardViewController #9

@dinonovak

Description

@dinonovak

I am trying to open STPAddCardViewController (I need customer to enter card number and billing info) so that token is calculated.
I updated the sample with my PublishableKey.

code for my class:
`namespace StripeQs
{

public partial class CardViewController : UIViewController, ISTPAddCardViewControllerDelegate
{


    public override void ViewDidLoad()
    {
        base.ViewDidLoad();
        var config = STPPaymentConfiguration.SharedConfiguration();


    }

    public override void DidReceiveMemoryWarning()
    {
        base.DidReceiveMemoryWarning();
        // Release any cached data, images, etc that aren't in use.
    }


    [Export("addCardViewControllerDidCancel:")]
    public void DidCancel(STPAddCardViewController addCardViewController)
    {
        string a = "aaa";
    }


    [Export("addCardViewController:didCreateToken:completion:")]
    public void DidCreateToken(STPAddCardViewController addCardViewController, STPToken token, STPErrorBlock completion)
    {
        string a = "aaa";

    }

    [Export("addCardViewController:didCreateSource:completion:")]
    public void DidCreateSource(STPAddCardViewController addCardViewController, STPSource token, STPErrorBlock completion)
    {
        string a = "aaa";

    }
}

}
`

But when running the app in simulator and entering the card number and billing info following error is produced:
Failed to compute the token reference for the type 'StripeSdk.ISTPSourceProtocol, Naxam.Stripe.iOS, Version=13.0.2.0, Culture=neutral, PublicKeyToken=null' because the assembly couldn't be found in the list of registered assemblies.

please advise what am I doing wrong

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions