Ejemplo n.º 1
0
        public override StripeSource Create(StripeSettings stripeSettings, FirstPaymentData data)
        {
            var source = new StripeSourceService(stripeSettings.StripePrivateKey).Create(new StripeSourceCreateOptions
            {
                Type     = StripeSourceType.Bancontact,
                Amount   = data.Amount,
                Currency = data.Currency,
                Owner    = new StripeSourceOwner
                {
                    Name = data.OwnerName
                },
                RedirectReturnUrl = data.RedirectReturnUrl,
                Metadata          = data.Metadata
            });

            return(source);
        }
Ejemplo n.º 2
0
        public override StripeSource Create(StripeSettings stripeSettings, FirstPaymentData data)
        {
            var source = new StripeSourceService(stripeSettings.StripePrivateKey).Create(new StripeSourceCreateOptions
            {
                Type     = StripeSourceType.Sofort,
                Amount   = data.Amount,
                Currency = data.Currency,
                Owner    = new StripeSourceOwner
                {
                    Name = data.OwnerName
                },
                RedirectReturnUrl         = data.RedirectReturnUrl,
                SofortCountry             = data.CountryCode,
                SofortStatementDescriptor = "", // define statement description
                Metadata = data.Metadata
            });

            return(source);
        }
Ejemplo n.º 3
0
 public abstract StripeSource Create(StripeSettings stripeSettings, FirstPaymentData data);
Ejemplo n.º 4
0
 public StripePaymentProvider(StripeSettings settings)
 {
     _settings = settings;
 }