Advertisement
Guest User

Untitled

a guest
Jun 21st, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. var sourceOptions = new StripeSourceCreateOptions
  2. {
  3. Type = StripeSourceType.Card,
  4. Amount = 10 * 100,
  5. Currency = "hrk",
  6. Owner = new StripeSourceOwner
  7. {
  8. Email = cardEmail.Text,
  9. Name = cardOwner.Text
  10. },
  11. Card = new StripeCreditCardOptions()
  12. {
  13. Number = cardNumber.Text,
  14. ExpirationYear = cardExpYear,
  15. ExpirationMonth = cardExpMonth,
  16. Cvc = cardCVC.Text
  17. }
  18. };
  19.  
  20. StripeSourceService sourceService = new StripeSourceService();
  21. StripeSource outX = sourceService.Create(sourceOptions);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement