How does Apple Pay handle insufficient funds in Swift iOS?

Apple Pay processed a transaction but the account has insufficient funds. Later the transaction is declined. Is it expected from Apple Pay? Does Apple Pay throws an error if the account has insufficent funds- iOS Swift ? Does anyone know the code to handle this scenario in Swift iOS?

Answered by DTS Engineer in 830316022

Hi @JTechHyd,

The status of the transaction is provided to the app via PKPaymentAuthorizationStatus.

Please review the documentation above to learn more about the payment authorization flow as well as handling successes and failures.

Cheers,

Paris X Pinkney |  WWDR | DTS Engineer

Hi @JTechHyd,

The status of the transaction is provided to the app via PKPaymentAuthorizationStatus.

Please review the documentation above to learn more about the payment authorization flow as well as handling successes and failures.

Cheers,

Paris X Pinkney |  WWDR | DTS Engineer

Thanks a lot for your reply @DTS Engineer

How does Apple Pay handle insufficient funds in Swift iOS?
 
 
Q