question

jlo09 avatar image
jlo09 asked jlo09 commented

Hosted Checkout and Wordpress

Hello,

I am in the process of creating my own wordpress plugin in which I will be displaying the hosted checkout using this endpoint:

/invoicingcheckoutservice/v1/checkouts

I have accomplished creating the request and I get a successful response with the following url:

https://sandbox.dev.clover.com/checkout/{sessionId}?mode=checkout

My problem now is that my wordpress page with the embedded iFrame is not displaying the checkout form.

It gives me the following error:

Refused to frame 'https://sandbox.dev.clover.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors *.clover.com cloverstatic.com dev.cloverstatic.com *.natwest-tyl.com *.usetyl.com *.optimizely.com *.perka.com"

Is there something I'm missing on my request headers?

Currently set as:

"headers" => array(
				"Authorization" => "Bearer " . $bToken,
				"X-Clover-Merchant-ID" => $mId,
				"Accept" => "application/json",
				"Content-Type" => "application/json"
			)

Thanks in advance!

REST APIe-commerce api
10 |2000

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

0 Answers

·

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