question

Dan avatar image
Dan asked Shubham Bhawsar edited

first6 field often not populated on live credit/debit Order Payments (using OrderConnector)

Hi folks,


We have an app with a broadcast receiver which performs a function based on credit or debit card payments. When an event is broadcast and it's a credit or debit payment, we fetch it's order via the OrderConnector. The resultant Order does contain the Payment object, but very often we are finding that Payment object does not contain a valid `cardTransaction.first6` field, which is something the app requires.


Is this a known bug and is there any kind of work around? Perhaps introducing a couple of seconds of a delay into the app would allow the `first6` field time to populate itself?


Edit: Upon some further testing, I've tried to "poll" the OrderConnector for up to 10 seconds to see if `first6` populates itself during this time. It does not :)

OrdersPaymentConnector
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Shubham Bhawsar avatar image
Shubham Bhawsar answered Shubham Bhawsar edited

Hello @

I also added this functionality in application, and the method

getCardTransaction().getFirst6() 

was returning correct value when we used in sandbox environment, but the same is returning null in clover production environment.

Did you found any solution for it ?

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community