#sohit-shukla_code

1 messages ยท Page 1 of 1 (latest)

rigid merlinBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1303652974475870269

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

burnt grotto
fiery wigeon
#

Are you seeing an error when making those API requests?

burnt grotto
#

yes

#

Invalid token id: VfBMnbhESCEzoDK+6utNx1x313/z1mpPUN+OYj/M/pg/xkW2YNmZMFOtFsczJp3rmIS4x3X3HtYzWQCBqkY5dUpmB7BKONkeg3G8BBib+u+RB+GhxrODvZH+dD2ktjcfgy1a4hLMgKSbM9XBTTBc2aS7CaG4uRmSbi3fkL7GcxShmVjMZomSRbDYxMDBQ3eREQuBJKeJSnOO22c3Lp/dz/YyOTKoxpBGhrOPR3YU3MQa5Jn/LmSpJVzseGV/kdzj16qIrqg81j1zLfiWdN3UZMcF4xiBvpX29nWCa8pe81UyW2USYFPcJ5+oDWJkw3iRlbCSmw1KD/bG9hnBz7rpJUcf0UpCrcl5d9ppeLaZ1jSpNeXshvnGdz3uYEAadrflajVxa+RqXdRy2O0Jeg==

#

this happens when I use $token = (isset($paymentData['token']['paymentData']['data']) && !empty($paymentData['token']['paymentData']['data']))?$paymentData['token']['paymentData']['data']:null;

I.e. data part of token else I get invalid string error

fiery wigeon
#

Can you share the request IDs? Why are you using the manual token generation for Apple Pay instead of just using our native wallet UIs?

burnt grotto
#

I am not authorized to make changes to complete software. It has lagecy modules when we try to update everything falls apart.

Hence I included apple.js in theme and tried using it

fiery wigeon
#

Do you have the request IDs for the requests?

burnt grotto
#

req_4leTh33WVaEtt5, req_6dkM5HIgOy5wEu,
req_EY2xdGwwaTwnAF

All the requests today have different version of attempts

fiery wigeon
#

Out of interest, where have you found these parameters?

burnt grotto
#

session.onpaymentauthorized = (event) => {
const payment = event.payment;
processPayment(payment) //server side call

fiery wigeon
burnt grotto
#

Yes I understand, thank you for your time. The apis are too old and request upgrades. The button doesn't displays at all

fiery wigeon
#

You're using Payment Request Button? Are you seeing that now?

burnt grotto
#

no not that button (its not visible) but I am using apple.js now and button is visible

#

I only see Pay with link or Gpay not apple pay

#

but will plain apple.js I do see the button

fiery wigeon
#

I mean that modal window telling you to upgrade

#

Do you see that now?

rigid merlinBOT
burnt grotto
#

yes, also If we change package-lock.json on server the deployment pipeline fails

#

We will be required to add apple-sdk thats why simple apple.js integration will to require updates to any configuration files

gilded panther
#

I have no idea what "apple-sdk" or "apple.js" are really, sorry.