attdevsupport/att-html5-sdk

Payments redirect url ignores attBasePath setting

Closed this issue · 3 comments

Summary:
Payments is redirecting to https://lprod.code-api-att.com/att/payment?TransactionAuthCode=e3a75590-a914-4e87-afaf-aca714a86759 Url

Steps to Reproduce:
1.Navigate to https://lprod.code-api-att.com/html5sdk/
2.Select the PAYMENT App 2
3 select buy product 2 for $2.99 and click on buy product
4.Text the word given to 288463 from valid phone for authorization.
5.Payments is redirecting to https://lprod.code-api-att.com/att/payment?TransactionAuthCode=e3a75590-a914-4e87-afaf-aca714a86759 Url

Expected:payments should redirect to https://lprod.code-api-att.com/html5sdk/Payment/App2/index.html

Actual:Payments is redirecting to https://lprod.code-api-att.com/att/payment?TransactionAuthCode=e3a75590-a914-4e87-afaf-aca714a86759 Url and throwing a not found error
payments 2014-07-23 at 2 42 49 pm

This is either a configuration error on lprod or worst case this URL is hardcoded in the Java server. Checking into it.

Actually this a problem with a hardcode in the sample. SinglePay.js buildPaymentOptions has "redirect_uri":window.location.origin + "/att/payment"

but this should instead pick up the attBasePath from Config.js. This is probably a problem in subscription as well.

Swetha, please test this and close/reject