#silvanet-Checkout
1 messages ยท Page 1 of 1 (latest)
You should be able to search on my handle. I only just posted my request and detailed what was happening, so it should be easy to find and jump to. But anyway, the essence is I process payments that use the Stripe session shipping information to send emails notifying the customer and the seller. The seller is supposed to get the customer's shipping address, but the email is coming with the address as [object Object] undefined. I fill out the form in the test sandbox with a customer name, street address, city, and postal code. I'm trying to find where that is going wrong.
I sent the code in the success.js file that fetches the data. Everything else comes back OK, just not the address. Am I fetching it wrong?
The details were in the text file uploaded. I can shorten and select out the relevant snippets if you want.
My original question was in dev-help
๐ I'm hopping in since pgskc has to head out soon - I see you provided some code snippets earlier, but can you also provide an example Customer Session ID so I can look at it on my end?
@spiral onyx Just making sure you saw my question
Also just for context - the reason you weren't able to respond to the earlier thread with bismark is because we automatically archive threads if we get no response back from you.
Thanks for the explanation. I also did a lot of searching and found my typos. I had left out the .address before the .city and also the .line1 after the .customer_details.address in the let bodyToOwner code.
Gee Christ! Isn't it always something small like a typo or exclusion?
it's either that or the wrong index on an array ๐
I had:
<p>Address: ${stripe_session.customer_details.address} ${
stripe_session.customer_details.city
and it should have been:
stripe_session.customer_details.address.city
GAAK!
ahhhh yeah