Hey, just started using cfpayment in order to process payments through stripe, and on my development machine, it was working fantastically (my development machine is a windows laptop running Coldfusion 2016, and using the built in web-server, not IIS).
As soon as I moved the changes to the test server, it threw me an error.
Invalid construct: Either argument or name is missing. |
When using named parameters to a function, each parameter must have a name. The CFML compiler was processing: - An expression beginning with process, on line 282, column 27.This message is usually caused by a problem in the expressions structure.
- A cfreturn tag beginning on line 282, column 18.
- A cfreturn tag beginning on line 282, column 18.
|
The Test Server is running Coldfusion 9, and using IIS to create the web server.
<cfscript>
cfg = { path = "stripe.stripe", TestSecretKey = "notARealKey" };
svc = createObject("component", "cfpayment.api.core").init(cfg);
gw = svc.getGateway();
account = svc.createCreditCard().setAccount(attributes.card_number).setVerificationValue(attributes.card_code).setMonth(attributes.card_exp_month).setYear(attributes.card_exp_year).setFirstName(attributes.first_name).setLastName(attributes.last_name);
money = svc.createMoney(attributes.amount * 100);
response = gw.purchase(money = money, account = account);
ccResponseCall = response;
if (response.getSuccess()) {
//These just write out the output (in a really ugly fashion)
//WriteDump(var=DeserializeJSON(response.getResult()), abort=true);
//writeoutput(response.getResult());
ccResponse = TRUE;
}
else {
sErrors = response.getMessage();
ccResponse = FALSE;
}
</cfscript>
This is the snippet of code that it's running to charge the card, any thoughts on why it isn't working currently?
Any insight on this issue?