question

kirank avatar image
kirank asked kirank edited

ECom Create charge and capture charge have Required X-Forwarded-For

It seems like Create and Capture of ECom API now have required "x-forwarded-for"

https://docs.clover.com/reference/createcharge

https://docs.clover.com/reference/capturecharge

This "required" is a problem because we could be using multi use tokens or previously created single use token where Client's browser IP address is not available. Can you please clarify in the docs when x-forwarded-for is optional vs. required.


ecommerce
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

·
bryanvargas avatar image
bryanvargas answered kirank edited

Please read over our https://docs.clover.com/docs/new-required-header-for-clover-ecommerce-charge-and-order-pay-requests

This is required for all of our Ecomm requests.

6 comments
10 |2000

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

kirank avatar image kirank commented ·
I understand. As I mentioned, what I'm asking how to handle cases when customer is not available? As an example, I mentioned multi-use tokens. Here customer has provided the card and token is generated. But the token can be used much later multiple hours or days later.


0 Likes 0 ·
bryanvargas avatar image bryanvargas ♦♦ kirank commented ·

If there is payment being made with the Ecomm api, there has to be an IP address on where they payment is being originated.

0 Likes 0 ·
kirank avatar image kirank bryanvargas ♦♦ commented ·

"Ecomm api, there has to be an IP address on where they payment is being originated."

I guess it depends on how x-forwarded-for is used. Can you please describe when the transaction will be declined based on x-forwarded-for mis-match?


If the x-forwarded-for does not apply to stored_credentials, then there is not a issue.


0 Likes 0 ·
Show more comments

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