Issue a refund with Apple Pay?

Hi,


I haven't been able to find any sort of documentation about how to issue a refund via Apple Pay within an app (though there are tons of articles about refunds in-store). I tried to do this through the regular PKPaymentRequest, but I got an error that the total must be greater than $0.

Payment request is invalid: Error Domain=PKPassKitErrorDomain Code=1 "Invalid in-app payment request" UserInfo=0x171c76480 {NSLocalizedDescription=Invalid in-app payment request, NSUnderlyingError=0x170846b40 "PKPaymentRequest total must be greater than zero.”}


Anybody know how I can do a refund?

Replies

Refund on what?

Refund on an item. Say a user accidentally purchases a $5 book via Apple Pay, are we able to refund the user that $5 through Apple Pay within the app?

When you authorize a payment with Apple Pay (

PKPaymentAuthorizationViewController
), it does not actually charge the customer's credit card.


In order to authorize or capture funds, you need to integrate with a payment processor, such as Braintree.


If you errantly charge a customer with your payment processor, you should consult their documentation for refunding a transaction. There is no need to obtain another

PKPayment
for a negative amount. The original card will be credited with the specified amount when you issue the refund.
Post not yet marked as solved Up vote reply of mmm Down vote reply of mmm

Hello MM, I am working on Apple pay so I need to develop Apple Refund Api so what kind of parameter I need to pas to end point any reference document or any help ?

Thanks and regards Zain Ul Hasan