0

I am using Braintree's java library within Coldfusion 10. I am running into an issue when I actually try to submit a payment. How would I write this line of code in CF, assuming all of the values I am passing in are the same name.

Result<Transaction> result = gateway.transaction().sale(transactionRequest);

Any help would be greatly appreciated.

Leigh
  • 28,765
  • 10
  • 55
  • 103
user3311068
  • 59
  • 1
  • 6
  • 7
    *I am running into an issue* What is the issue? Are you getting an error? If so, update your question to include a) your current code and b) the error message - including the stack trace. Also, can you include a link to the API you are using? – Leigh Mar 12 '14 at 14:04
  • Just a wild guess, but if you are struggling with the [java generics syntax](http://docs.oracle.com/javase/tutorial/java/generics/inheritance.html), just ignore it. CF being weakly typed, it does not apply. Assuming you already created the `gateway` and `transactionRequest` objects, just invoke the method as usual: `result = gateway.transaction().sale(transactionRequest);`. That is all I can suggest without more details. – Leigh Mar 12 '14 at 15:17

1 Answers1

0

Looks like there is a cfpayment project with a CFC built that you can use. Check out this, looks like it has all the necessary functionality.

Leigh
  • 28,765
  • 10
  • 55
  • 103
Trevor Orr
  • 927
  • 1
  • 14
  • 31