Hey all,
I am able to successfully create a merchant session and send my session object to the completeMerchantValidation method.
merchantSession =
{
"epochTimestamp": 1111111,
"merchantSessionIdentifier": "2b...c24",
"nonce": "2b...ad",
"merchantIdentifier": "0f..9f",
"domainName": "mysite.store.com",
"displayName": "MyStore",
"signature": "308...00"
};
session.completeMerchantValidation(merchantSession);
*note* I am using the real merchantSession passed back from the POST to the validationURL, what I have above is mocked.
It seems that after this function (completeMerchantValidation) gets my merchantSession object, the session.oncancel is triggered and my payment sheet shows a message:
"Payment Not Completed". Basically my sheet does the "processing" then almost immediatly displays "Payment Not Completed" and self-closes.
Has anybody encoutered this issue before?
Hey,
I actually only get this error when running locally. When I run the code on a verified domain I do not see that error anymore. I will do some more validation and let you know if it is truely an environmental issue.
I do have a sandbox provisioned card, Ill have to checkout that string issue that you saw - but I did have those methods and that didn't seem to fix anything. very odd
*FOLLOW UP*
I confirmed that I can only run this on a verified domain aka environmental issue (so localhost is out the window).