Skip to content
This repository has been archived by the owner on Jun 11, 2023. It is now read-only.

Missing required param: source. #13

Open
smooney1234 opened this issue Feb 22, 2016 · 0 comments
Open

Missing required param: source. #13

smooney1234 opened this issue Feb 22, 2016 · 0 comments

Comments

@smooney1234
Copy link

Hello,

I keep getting the error message above. I am trying to add the card to stripe before creating the users subscription.

private StripeCard AddCardToStripe(CreditCard card, string stripeCustomerId)
{
var options = new StripeCardCreateOptions
{
Source = new StripeSourceOptions
{
TokenId = card.StripeToken
}
}; //nothing is picked up here i.e. the token is not being passed in.

        var requestOptions = new StripeRequestOptions
        {
            ApiKey = _apiKeyRequest,
            IdempotencyKey = IdempotencyKey,
            StripeConnectAccountId = StripeConnectAccountId        
        };

        return _cardService.Create(stripeCustomerId, options, requestOptions);
    }

Any help would be great, thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant