In sandbox environment
I’ve created the payment link
If I made payment link local I can open and process it,
but if I test in on my server i get almost blank page
Where is the problem?
code_example:
checkout_api = SquareClient(
access_token=access_token, environment=environment
).checkout_api()
body = {
"idempotency_key": order_id,
"order": {
"location_id": location_id,
"line_items": [
{
"name": description,
"quantity": "1",
"metadata": {"order_id": order_id},
"base_price_money": {"amount": amount, "currency": currency},
}
],
"metadata": {"order_id": order_id},
"pricing_options": {},
},
"checkout_options": {
"redirect_url": result_url,
},
"source": order_id,
}
result = checkout_api.create_payment_link(body)
steps to reproduce
- Open main website
- Send create payment link request to micro service
- process this request and make another to square
- return payment link to main web site
- open payment link in main web site
I think, my problem around locations, ip, etc