Hi guys, new to using cfpayment, and im getting the following error:
The parameter payload to function getGatewayURL is required but was not passed in.
/api/gateway/braintree/braintree.cfc:158
From:
<cfset config = {
path = "braintree.braintree",
environment = "SANDBOX",
merchantId = "****",
privateKey = "***",
publicKey = "***"
}>
<cfset cfpayment = createObject("component", "cfpayment.api.core").init(config) />
<cfset gateway = cfpayment.getGateway() />
<cfscript>
gateway.setTestMode(true);
</cfscript>
<cfset money = cfpayment.createMoney(5000, "NZD") />
<cfset account = cfpayment.createCreditCard() />
<cfset account.setAccount(4111111111111111) />
<cfset account.setMonth(10) />
<cfset account.setYear(10) />
<cfset account.setFirstName("John") />
<cfset account.setLastName("Doe") />
<cfset response = gateway.authorize(money = money, account = account) />
<cfset response = gateway.capture(money = money, transactionid = response.getTransactionID()) />