SHARE
TWEET

Untitled

a guest Jun 25th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var paymentIntentService = new PaymentIntentService();
  2. var paymentIntentTransferDataOptions = new PaymentIntentTransferDataOptions();
  3.  
  4. var options = new PaymentIntentCreateOptions
  5. {
  6.     Amount = paymentIntentTransactionOptions.AmountInCents,
  7.     Currency = DEFAULT_TRANSACTION_CURRENCY,
  8.     ApplicationFeeAmount = this.CalculateApplicationFee(paymentIntentTransactionOptions),
  9.     ReceiptEmail = "", // TODO Obtain this from the Logged in user
  10.     PaymentMethodTypes = new List<string> { "card" },
  11. };
  12.      
  13. var requestOptions = new RequestOptions();
  14. requestOptions.IdempotencyKey = INTENT_IDEM_PREFIX + paymentIntentTransactionOptions.TransactionId;
  15. var paymentIntent = await paymentIntentService.CreateAsync(options, requestOptions);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top