#sohit-shukla_code
1 messages ยท Page 1 of 1 (latest)
๐ 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.
Test url: https://yevma.yournextbigsite.com/
Are you seeing an error when making those API requests?
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
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?
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
Do you have the request IDs for the requests?
req_4leTh33WVaEtt5, req_6dkM5HIgOy5wEu,
req_EY2xdGwwaTwnAF
All the requests today have different version of attempts
Out of interest, where have you found these parameters?
session.onpaymentauthorized = (event) => {
const payment = event.payment;
processPayment(payment) //server side call
Generally speaking this integration path is discouraged and as such we don't document the actual APIs/parameters to use publicly. If you want help with this you'll need to write in to our team: https://support.stripe.com/contact/email?topic=api_integration
Yes I understand, thank you for your time. The apis are too old and request upgrades. The button doesn't displays at all
You're using Payment Request Button? Are you seeing that now?
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
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
I have no idea what "apple-sdk" or "apple.js" are really, sorry.