Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Last active January 4, 2019 12:51
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 hitherejoe/9b5fd907f2617bc4fd9cb22e550c2bee to your computer and use it in GitHub Desktop.
Save hitherejoe/9b5fd907f2617bc4fd9cb22e550c2bee to your computer and use it in GitHub Desktop.
private val gatewayInformation = JSONObject().apply {
put("gateway", "example")
put("gatewayMerchantId", "exampleGatewayMerchantId")
}
private val tokenizationSpecification = JSONObject().apply {
put("type", "PAYMENT_GATEWAY")
put("parameters", gatewayInformation)
}
private val cardPaymentMethod = JSONObject().apply {
put("apiVersion", 2)
put("apiVersionMinor", 0)
put("tokenizationSpecification", tokenizationSpecification)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment