# Sandbox: Create Payment Request with 3DS shows error, make sure your token is valid?

**URL:** <https://community.rapyd.net/t/sandbox-create-payment-request-with-3ds-shows-error-make-sure-your-token-is-valid/1161>\
**Category:** 🌱 Payments 101\
**Created:** [September 17, 2021, 6:20am UTC](https://community.rapyd.net/t/sandbox-create-payment-request-with-3ds-shows-error-make-sure-your-token-is-valid/1161 "2021-09-17T06:20:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Community\_Team](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@Community\_Team](https://community.rapyd.net/u/Community_Team)\
**Post date:** [September 17, 2021, 6:20am UTC](https://community.rapyd.net/t/sandbox-create-payment-request-with-3ds-shows-error-make-sure-your-token-is-valid/1161/1 "2021-09-17T06:20:59Z")

</div>

When making a payment request like Create Payment with 3DS it is important to include the `complete_payment_url` and ​​`error_payment_url` in your payload.

Without a `complete_payment_url`, the user may complete the payment, and is not redirected to a completed payment URL. The user may think the payment didn’t go through and immediately attempt to submit another payment.

This action would trigger 2 payment submissions and the second request will fail with an invalid token as shown below: `Something Went Wrong. Make sure your payment token is valid and try again`.

![3ds-faiil](https://us1.discourse-cdn.com/flex016/uploads/rapyd/original/2X/e/e1966deddf11c1757d1b14ff351ab75cd3642cd5.gif)

## Include the Complete Payment URL

To avoid this error, you should always ensure that the `complete_payment_url` has been set. The payment page will redirect to url you included on completion.

```auto
{
	"amount": 1500,
	"currency": "SGD",
	"customer": "cus_5423810ce7f00e2108ad1672c22ede23",
	"payment_method": {
		"type": "sg_credit_cup_card",
		"fields": {
			"number": "4111111111111111",
			"expiration_month": "12",
			"expiration_year": "23",
			"name": "John Doe",
			"cvv": "345"
		},
		"metadata": null
	},
	"capture": true,
    "3DS_required": true,
     "complete_payment_url": "https://www.rapyd.net/",
        "error_payment_url": "https://help.rapyd.net/"
}

```

![3ds-success](https://us1.discourse-cdn.com/flex016/uploads/rapyd/original/2X/e/ed568c45d533cd5f8a2e2391cd85fc517e71c4a1.gif)
