Posting a payment using iOS SDK and dummy Gateway

swift

#1

Consistently getting FAILED as CC payment result in Moltin sample app and in my own.

Payment data (replaced real CC with fake one for this post)…
[AnyHashable(“data”): [“number”: “12341234123412341234”, “expiry_year”: “2019”, “cvv”: “999”, “expiry_month”: “1”]]

The order is created no problem, but payment isn’t working.

Retrying Payment Method, Order ID: 1579413345834894284
2017-08-11 21:19:43.347 ] com.moltin.sdk: POST: https://api.molt.in/v1/checkout/payment/purchase/1579413345834894284
2017-08-11 21:19:49.899 ] com.moltin.sdk: ERROR POST: https://api.molt.in/v1/checkout/payment/purchase/1579413345834894284
DATA: {
error = Failure;
order = { …
gateway = {
data = {
description = “”;
enabled = 1;
name = Dummy;
slug = dummy;
};
value = Dummy;
};


“shipping_price” = “4.99”;
status = {
data = {
key = failed;
value = Failed;
};
value = Failed;
};
subtotal = 70;
total = “74.98999999999999”;
“updated_at” = “2017-08-12 01:19:25”;
};
status = 0;
}

Payment error: Failure


#2

Hey Kevin,

Looking into this for you, checking the API to see if it’s an API issue or an SDK issue. Will feedback as soon as I have more information. Just to note this should probably come in through the support portal as it looks more like a bug than a how-to question.

Drew


#3

Hi Kevin, I have tried to replicate this making postman calls direct to the API and so far haven’t been able to replicate. I will copy this over to our support portal and communicate futher from there.


#4

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


#5