question

rgranlund avatar image
rgranlund asked chrispetchey answered

iframe integration is not working

I am attempting to implement the clover iFrame into my clients site and am having a hard time with the final few steps. I am attempting to use the Clover iframe hosted solution. However I am running into a few issues and cannot seem to resolve the issue with research. I am hoping that this email will help me resolve the issues I am having.

The page I am working on fyi: https://www.mayaexploration.org/mecweb2023/donate.php I currently have to not submit until I work out these 2 errors. ANY assistance you can share with me will be greatly appreciated.

  1. I do not think I have the charge endpoint correct: https://checkout.clover.com/v1/charges ?
  2. Where do I set the callback url? I am getting an error 'http://www.mayaexploration.org/'. This request has been blocked; the content must be served over HTTPS. So I think it was set wrong someplace in the dashboard.

I have attached my 2 scripts because it may be the way I am attempting to fetch the endpoint.

e-commerce apiinaccurate_api_docs
10 |2000

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

1 Answer

·
chrispetchey avatar image
chrispetchey answered

Endpoints are detailed here

https://docs.clover.com/reference/api-reference-overview

So, to make a charge to /v1/charges yuo should be using https://scl-sandbox.dev.clover.com for sandbox or https://scl.clover.com for live.

As far as I know (which isnt far) there is no callback url because the charge should be a server to server call from your server to clover

So, your iframe page should post back to your server, then your server makes the charge call to clover

10 |2000

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

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