Apple Pay on the Web

Apple Pay on the Web allows you to accept Apple Pay on your website using JavaScript-based APIs.

Apple Pay on the Web Documentation

Posts under Apple Pay on the Web tag

116 results found
Post marked as unsolved
60 Views

Apple payment/wallet

i need apple card api or .ipa file to add thailand as new country
Asked
by pluemvj.
Last updated .
Post marked as unsolved
146 Views

Apple pay on web

I am doing a apple pay web implementation. I send the post, but I'm uncertain what is expected for the cert? I'm using php curl requests on the server side. The closest I got to a real response was when I exported the cert from my mac as .p12, converted it to .pem and uploaded it to the server. $ch = curl_init(); $validationUrl = "https://apple-pay-gateway-cert.apple.com/paymentservices/startSession"; curl_setopt($ch, CURLOPT_URL, $validationUrl); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json')); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 300); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); //for production, set value to true or 1 curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); //for production, set value to 2 curl_setopt($ch, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2); curl_setopt($ch, CURLOPT_SSLCERT, Yii::getAlias('@app') . "\uploads\Certificates.pem"); curl_setopt($ch, CURLOPT_SSLCERTPASSWD, "vrajdham@123"); curl_setopt($ch, CURLOPT_DNS_USE_GLOBAL_CACHE, false); $content = curl_exec($ch); if (FALSE === $content) { throw new Exception(curl_error($ch), curl_errno($ch)); } curl_close($ch); Response { "statusMessage": "Error processing request.", "statusCode": "500" }
Asked
Last updated .
Post marked as unsolved
51 Views

Creating Merchant Session - An error occurred while sending the request.

 I am not able to create a merchant session successfully. I am running the .NET framework 4.8. Also, while calling the validation URL with HTTP Client, I am setting the TLS to 1.2 explicitly. I am able to load the certificate properly, but when calling the URL, it gives an exception "An error occurred while sending the request. " Inner Exception: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host The underlying connection was closed: An unexpected error occurred on a send. Can you please help? Thank you.
Asked
Last updated .
Post marked as unsolved
92 Views

Invalid billing adress and shipping address

Whenever I try to checkout in my webpage using Stripe and Apple Pay, I get an error if the state includes an accent (á. é, í, ó, ú). Here in Mexico, it is very common that states are named that way. Error: Enter a valid state as billing address Error: Enter a valid state as shipping address
Asked
Last updated .
Post marked as unsolved
194 Views

API PAYMENT ( CAPTURE AND REFUND)

Does anyone knows how to integrate API payment provided by Apple Pay in order to perform only the capture ( the money are captured from the the customer's bank account ) and the refund ( the money are refunded to the customer's bank account)? In my business model, the order is placed on the website and authorized for the payment. Once done, the order is sent to the OMS (Order Management System) that check the stock availabilty. If the order can be picked because the stock is available, I have to call the API for the capture. The same thing if the customer asks to return the goods and once the return request is sent to OMS, i have to call the API for the REFUND. How can i implement the payment "request" for both scenarious? Is there any request example? How can i manage the "response" coming from Apple pay for both scenarious? Is there any "response" example? tks
Asked
by scirob.
Last updated .
Post marked as unsolved
132 Views

Apple Pay / Authorize.net 153 response on certain cards

I am running into an odd issue with Apple Pay / Authorize.net integration. Vista transactions work correctly but American Express and Discover transactions get a 153 response code. I have verified that all card types have been enabled with Authorize.net. What would cause only some payment types to fail? The file that intercepts the Apple Pay transaction and relays it to Authorize.net makes no distinction between card types, so it passes along the same fields for every transaction. Is the data from Apple Pay somehow different if different cards are used? If there was an issue with certificates and the content of OpaqueData could not be decrypted, no payment type would work. If anyone has had this issue and resolved it in the past, can you share your solution? Any tips or suggestions that could be provided would be appreciated as well.
Asked
Last updated .
Post marked as unsolved
111 Views

Stripe js for Apple Pay

If i build an webview app for ios through stripe js, does Apple accept my application? Stripe.js is configured to use apple pay. Will i get problems during review process?
Asked
by PeraDev.
Last updated .
Post marked as unsolved
396 Views

Apple Pay on the WEB > Requesting Apple Pay Session > "An existing connection was forcibly closed by the remote host "

I have technical issue when I make this step in apple Pay integration (Apple Pay on the WEB > Requesting Apple Pay Session): https://developer.apple.com/documentation/apple_pay_on_the_web/apple_pay_js_api/requesting_an_apple_pay_payment_session I really don't know what the reason to problem is with the next error I get from Apple. I've tried all kinds of things for a whole day but I can't find the reason. When I send the Post (detailed in link above), I got very common and general error (I've tried dozens of things mentioned in Google): “<WebException WebException="SendFailure | The underlying connection was closed: An unexpected error occurred on a send.| System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---&amp;gt; System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host   ……………………” Apple is blocking me even though the server I work with is (probably) suited to all their requirements.
Asked
by hananya.
Last updated .
Post marked as solved
164 Views

.well-known/apple-developer-merchantid-domain-association domain-verification file: restrict access to Apple?

Must access to the domain-verification file for Apple-Pay at https://[DOMAIN_NAME]/.well-known/apple-developer-merchantid-domain-association be restricted to the Apple Pay IP addresses provided under the Allow Apple IP Addresses for Domain Verification heading of Setting Up Your Server | Apple Developer Documentation - https://developer.apple.com/documentation/apple_pay_on_the_web/setting_up_your_server#3172427 or can it be accessed publicly? Asking because ".well-known" is usually meant to be public but, because the domain-verification file is used to validate a domain, should the file not be protected from public access so the file cannot be retrieved with the malicious intent to validate a spoofed domain? Also, the fact the domain-verification file content is not trivial hints its access should be restricted. Thank you!
Asked
by tramber.
Last updated .
Post marked as unsolved
96 Views

Disable apple cash as a cardtype

I was on the GameStop website and saw that there is a way to disable Apple Cash as a card type. I don't see anything in the documentation about disabling Apple Cash can anyone help me out with this?
Asked
Last updated .
Post marked as unsolved
136 Views

苹果在中国代缴税金的比例

我们是中国的tax resident,为什么苹果还需要为我们代扣税金? 不是我们自己在中国缴纳吗? 我算了税率大概是2%,从2015年开始,但是不知道是依据什么规定计算得出的,这部分税金,苹果能否提供代缴税费的凭证,我们可以使用跟中国的税局沟通
Asked
Last updated .
Post marked as unsolved
132 Views

Apple Pay Merchant Id limit

Hi, anyone aware of the limit of merchant ids per ADA . I am getting this error now . It says"Unable to add Merchant ID because Merchant ID limit 100 has been exceeded" I am using my organisation's ADA. Want to know if this an app store bug or we need to pay more or this is a limitation, or we would need more accounts to overcome this limitation Any inputs would be highly appreciated
Asked
Last updated .