Use dataSource Property: If the documentation suggests using dataSource,
modify your code as follows: var paymentType = new
ApiContracts.PaymentType(); paymentType.setCreditCard(creditCard);
paymentType.setDataSource(ApiContracts.PaymentType.DATA_SOU...
Check for a Built-in Setting:Many payment gateways offer a setting
within their configuration or dashboard to specify a custom thank you
page URL.Access your payment gateway's settings and look for an option
to enable a custom thank you page.