top of page

Forum Posts

gali.levinshtein
Jul 28, 2019
In Coding with Velo
can someone help me? trying to use this: and getting this error:
getOrder not working content media
0
4
223
gali.levinshtein
Jul 21, 2019
In Coding with Velo
they release new feature on the 15.7 as i understand from here: https://www.wix.com/corvid/reference/$w.ThankYouPage.html#getOrder getOrder() Gets the order associated with the current page. Description: The getOrder() function returns a Promise that is resolved when the information about the order associated with the ThankYouPage is retrieved. when i'm using this code on the Thank You Page: $w('#thankYouPage1').getOrder() .then( (order) => { let orderNumber = order.number; let billingEmail = order.billingInfo.email; // see example order object below } ) i need to get this result for example: /* * Example order object: * * { * "_id": "d3e84af3-4597-9a18-36c8-1c6f176c0f52", * "billingInfo": { * "address": { * "formatted": "235 W 23rd St, New York, NY 10011, USA", * "city": "New York", * "country": "USA", * "addressLine": "235 W 23rd St", * "postalCode": "10011" * and more... but i get an error on my code can someone try it and see if you get this error on the Element with getOrder() its look like they forgot to upload version to the store thank you page Thanks
BUG!!!! getOrder on ThankYouPage content media
0
7
428
gali.levinshtein
Jul 17, 2019
In Coding with Velo
new features was released i waiting this feature for this some time now its released BUT its not working for me :( when i added this row on the Thank you page: $w('#thankYouPage1').getOrder(); i get the following error from the code editor: "'getOrder' does not exist on #thankYouPage1" can some one test it and confirm if its a bug or i missed some thing there? Thanks
0
2
208
gali.levinshtein
May 31, 2019
In Coding with Velo
hi, i'm trying to update specific row in a collection after wix pay event from backend/event.js insert new row seceded if i use insert instead update but update row not working can someone help me please? my code: import wixData from 'wix-data'; export function wixPay_onPaymentUpdate(event) { let paymentId = event.payment.id; let newTransactionStatus = event.status; let transactionId = event.transactionId; let firstName = event.userInfo.firstName; let lastName = event.userInfo.lastName; let phone = event.userInfo.phone; let email = event.userInfo.email let toUpdate = { "paymentId": paymentId, // "amount": paymentAmount, // "currency": paymentCurrency, "transactionStatus": newTransactionStatus, "transactionId": transactionId, // "quantity": quantity, "name": firstName, "familyName": lastName, //"country": country, "phone": phone, "email": email, }; wixData.update("paydb", toUpdate)
0
6
110
gali.levinshtein
May 28, 2019
In Coding with Velo
Hi, Trying to disable the user information on wix Pay API its not working for me can someone help please? my code: //Client Code// import wixPay from 'wix-pay'; import {createMyPayment} from 'backend/pay'; export function repeater1_itemReady($item, itemData, index) { let itemId = itemData._id; $item('#button71').onClick(async () => { let payment = await createMyPayment(itemId,{skipUserInfoPage:true}); await wixPay.startPayment(payment.id) .then( (result) => { if (result.status === "Successful") { // handle payment success } else if (result.status === "Failed") { // handle payment failure } else if (result.status === "Pending") { // handle payment pending } else if (result.status === "Cancelled") { // handle user closing payment panel } } ); }); } //Backend Code// import wixData from 'wix-data'; import wixPay from 'wix-pay-backend'; export async function createMyPayment(productId) { return wixData.get("paymentdb", productId) .then( (product) => { return wixPay.createPayment( { items: [{ name: product.name, price: product.price }], amount: product.price, } ); } ); }
0
5
151
gali.levinshtein
May 28, 2019
In Coding with Velo
Hi, I created payment with Corvid pay API. When i created payment, the payment was not insert to my OrdersDB. So my orders list its empty. Please help, Thanks
0
0
17

gali.levinshtein

More actions
bottom of page