Apple Pay for the Web Merchant Validation error

I'm trying to validate a merchant for web from my server but I keep being met with a 400 response with the following error message:

Code Block
Payment Services Exception Invalid session request -- missing domainName


The body I am sending is as follows (using dummy values):

Code Block
{
"merchantIdentifier":"merchant.com.company.TestMerchant",
"domainName":"frontend.example.com",
"displayName":"My Store",
"initiative": "web",
"initiative_context": "frontend.example.com"
}


frontend.example.com is a verified domain so it looks right to me. Am I possibly missing something? or misunderstanding something? I haven't found any other queries about this specific error so I am creating one here.

Any help would be greatly appreciated.

Thanks :)

Turns out, dropping the "initiative" and "initiative_context" properties was the solution.

Code Block
{
"merchantIdentifier":"merchant.com.company.TestMerchant",
"domainName":"frontend.example.com",
"displayName":"My Store"
}

I still don't fully understand why this worked as both these properties are fairly prominent in the documentation.

@Systemsathell

I am getting the response but it's keep processing and throwing an error "This website was not able make payments. Please try again" "Payment not completed"

Any solution for that?

Apple Pay for the Web Merchant Validation error
 
 
Q