Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Apple Pay in Staging #166

Merged
merged 2 commits into from
Mar 1, 2022

Conversation

antiv0
Copy link
Contributor

@antiv0 antiv0 commented Mar 1, 2022

Update to logic which fixes bug in validation of session
added console logging which will be removed later but will help with debugging in staging

event.validationURL,
(merchantSession: any): void => {
console.log('received session validation response')
console.log(merchantSession)
Copy link
Contributor Author

@antiv0 antiv0 Mar 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is opaque object, just logging it to see if it is null or undefined
(apple pay js knows what to do with it, i just wanna see that it is not null)

@@ -123,13 +130,16 @@ function handleApplePayEvents(appleSession: ApplePaySession) {
appleSession.onpaymentauthorized = function (
event: ApplePayJS.ApplePayPaymentAuthorizedEvent
) {
console.log('received authorization')
console.log(event.payment)
console.log(JSON.stringify(event.payment.token))
Copy link
Contributor Author

@antiv0 antiv0 Mar 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// if this fails due to being null, that is also information - so i didn't add guards
This is most important part I want to see in console (is object so needs stringify)

@jcantwell jcantwell merged commit 1c5aa30 into circlefin:master Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants