Skip to content

Instantly share code, notes, and snippets.

@hitherejoe hitherejoe/request.kt Secret
Last active Jan 4, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.