Skip to content

Instantly share code, notes, and snippets.

@amixpal
Created January 21, 2020 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amixpal/ca56fe029adb1e4d4826388a6a5f64c6 to your computer and use it in GitHub Desktop.
Save amixpal/ca56fe029adb1e4d4826388a6a5f64c6 to your computer and use it in GitHub Desktop.
List<Object> paymentMethodTypes = new ArrayList<>();
Map<String, Object> params = new HashMap<>();
params.put("amount", transferredAmount);
params.put("currency", "usd");
params.put("application_fee_amount", chargedBalance);
params.put("payment_method", "asasasasasas");
Map<String, Object> transferDataParams = new HashMap<String, Object>();
transferDataParams.put("destination", accountId);
params.put("transfer_data", transferDataParams);
PaymentIntent paymentIntent =
PaymentIntent.create(params);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment