Hi,
my Payeezy is throwing an error “payment method is missing”
here’s my code
http://pastebin.com/gEyAfyuf
here’s the response on our site at http://wolcottschoolpay.com/test/payeezy_php/test.php
{
correlation_id: "228.1440254919101",
Error:
{
messages:
[
{
code: "payment_method_missing",
description: "The payment method is missing"
},
{
code: "missing_amount",
description: "The amount is missing"
},
{
code: "missing_currency",
description: "The currency is missing"
}
]
},
transaction_status: "Not Processed",
validation_status: "failed",
transaction_type: "authorize",
currency: "USD”
}
I copied most of the part here on the official payeezy php direct library on github. https://github.com/payeezy/payeezy_direct_API/blob/master/payeezy_php/example/tests/PayeezyTest.php
i also tried both my merchant test details and the one provided at payeezy library but none worked.
Is this a library issue? any idea?
Hello Jaenelle,
You seem to be using the payload for getToken as described here:
https://developer.payeezy.com/tokenizedtreditcardpost/apis/post/transactions/tokens-1
For authorize, you need to be sending the payload as described here:
https://developer.payeezy.com/tokenbasedpayments/apis/post/transactions
Regards,
Payeezy Team