Just to note, we’re in the process of updating our other plugins to accept a Card Id.
Also, we’re testing out offering Free Trials, please fill in this form to get a 21-day free trial.
Any feedback is appreciated!
Just to note, we’re in the process of updating our other plugins to accept a Card Id.
Also, we’re testing out offering Free Trials, please fill in this form to get a 21-day free trial.
Any feedback is appreciated!
@Phill.NullaCode I think the free trial form has some permissions settings to be changed as I’m getting the following error having clicked the link and then had to sign up to Zoho
@chris.anderson Thanks for letting me know, please try the link again. If it doesn’t work you can send me a private message and I’ll set up the free trial.
Thanks,
Phill
Perfect, it’s working now. Please let me know once the free trial is available and I’ll install and test
@chris.anderson - Great, I’ve started your free trial - any questions let us know!
Thanks,
Phill
Thanks @Phill.NullaCode , I’ve installed, setup and have successfully sent across a test transaction I now have questions as follows:
Zip Code
I cannot seem to get the card form to change to Postcode rather than Zip Code and this is mandatory for UK payments. As a Zip code I can only enter numerical values. I’ve setup the Location ID (From Square) in both the Plugin values but also in the “Square Payments - Create Card Payment” Action, just in case. I’ve also set the country code as per the ISO standard to GB to see if this prompted the change. Screenshots below
Error: Cannot read property ‘id’ of undefined - Fixed. Value was too low. Amount should be set in pennies, i.e. 500 for £5.00. It throws an ID error in bubble but the Square API logs show the problem.
I’ve completed all of the sandbox / Dev ID’s I can see but I’m getting this error in the screenshots below. It’s managing to give be a Source ID and a verification token so is getting so far but then hitting a problem. Are you able to advise on the root cause please?
Sorry, I know that’s a lot!
Lastly, from your roadmap, it would be great to see Android / Apple Pay in here
Well done so far!! Have a great weekend
Hi @chris.anderson - Thanks for the detailed response, I’ll do my best to answer your questions:
Zip Code - I believe the postal code/zip code is automatic based on the country the card was issued, try one of the EU card test values. We can reach out to Square support if you’re still having issues.
Glad you sorted it, it’s always worth checking the server logs to troubleshoot these errors.
Yes that’s correct that the amount you capture when creating a Card Token should match the amount to charge when using the Create Card Payment workflow action. I will update the documentation to make this more clear
Not sure I completely follow your issue here, but I’ll try my best to answer, if your question is related to Square Checkout please comment on the separate forum post so we can keep track of it. You should use the Square Checkout plugin if you want to use the Square hosted checkout to take payments and use the Square Web Payments SDK & Cards plugin to build your own checkout with more customizations such as delaying payments, taking an app fee, storing card details etc. Let me know what information/Ids you’d like returned from the Full Response and for which plugin action so that I can have a look at adding them as returned values when the workflow action has run.
When you use the Create Card Payment workflow action, it returns a Payment Status value that is ‘Success’ or ‘Failed’, I’d recommend using an alert or redirecting your user based on the returned value from the Create Card Payment within your workflow. For example, if Payment Status is “Success” open a confirmation page within your app.
I’m hoping this is helpful, let me know
Thanks,
Phill
@chris.anderson - Here is the info from Square regarding postal codes Web Payments SDK Overview (squareup.com)
Thanks @Phill.NullaCode , much appreciated!!
Responses in line with the above as follows:
Request:
{
"source_id": "[redacted]",
"idempotency_key": "2d3q9wbcwzo64t2y3iharr",
"amount_money": {
"amount": 500,
"currency": "GBP"
},
"app_fee_money": {
"amount": 2,
"currency": "GBP"
},
"autocomplete": true,
"location_id": "LE7DZEDK4XTMQ",
"verification_token": "verf:CBASEA7kb3jC3mI_q_YZsMnZN0s",
"statement_description_identifier": "Tipz"
Response
{
"payment": {
"id": "vRlGJQrGG9DmY7Sq26ZdU10c14fZY",
"created_at": "2022-07-23T12:14:43.757Z",
"updated_at": "2022-07-23T12:14:43.988Z",
"amount_money": {
"amount": 500,
"currency": "GBP"
},
"total_money": {
"amount": 500,
"currency": "GBP"
},
"app_fee_money": {
"amount": 2,
"currency": "GBP"
},
"approved_money": {
"amount": 500,
"currency": "GBP"
},
"status": "COMPLETED",
"delay_duration": "PT168H",
"delay_action": "CANCEL",
"delayed_until": "2022-07-30T12:14:43.757Z",
"source_type": "CARD",
"card_details": {
"status": "CAPTURED",
"card": {
"card_brand": "VISA",
"last_4": "1111",
"exp_month": 11,
"exp_year": 2022,
"fingerprint": "sq-1-zLlRG7bHnmpdyDIsi5iZn0p9g31eF0v88YFfsppNXdWzPr_wmZ4xN-P5pG2svVNTVQ",
"card_type": "CREDIT",
"prepaid_type": "NOT_PREPAID",
"bin": "411111"
},
"entry_method": "KEYED",
"cvv_status": "CVV_ACCEPTED",
"avs_status": "AVS_ACCEPTED",
"statement_description": "SQ *DEFAULT TEST ACCOUNT",
"card_payment_timeline": {
"authorized_at": "2022-07-23T12:14:43.866Z",
"captured_at": "2022-07-23T12:14:43.989Z"
}
},
"location_id": "LE7DZEDK4XTMQ",
"order_id": "PcAYviBk4ZF03liIOx0Du5x8oUFZY",
"statement_description_identifier": "Tipz",
"receipt_number": "vRlG",
"receipt_url": "https://squareupsandbox.com/receipt/preview/vRlGJQrGG9DmY7Sq26ZdU10c14fZY",
"application_details": {
"square_product": "ECOMMERCE_API",
"application_id": "xxx"
},
"version_token": "Lh7gCGoMTNBgv4KeB9NTQnnWPIC0v6bZLTZbwCGiqOv6o"
}
}
Hi @chris.anderson - I’ve pushed an update (1.1.0) which includes the Receipt Url and Order Id as returned values when you run the Create Card Payment workflow action.
I hope this solves your problem, let me know if you have any issues!
Feel free to request a trial of the premium version of the Square Checkout plugin if you want to test it’s full functionality.
Thanks,
Phill
Perfect, thanks @Phill.NullaCode. Yes this is what I needed. I’ll test this and compare usability with the full Checkout plugin I’ve now purchased. I’ve left you a comment on that plugin page too as it would be great to have these values available in that plugin as well
Thanks again
Hey Phill, thanks for putting in so much time on all these useful square products. I’m hoping you can help me sort out which plugin might be able to do what I’m looking for.
I’m going to use my bubble database to handle all of the front end of the e-comm–copy, images, associated data types, etc, and use my square for the payments. And then I was wondering if it’s possible to streamline the workflow, add a little more info to my db entries–like price and quantity–and let bubble and Square talk to each other through some kind of api or something?
Would it be possible to accomplish this with any of your products?
Hi @zach8 ,
Yep, that sounds like the exact use case for our Square plugins. You can set up products and prices in your Bubble database and feed that info into the plugin workflow actions dynamically to take payments; this is what we’ve done in the Square Checkout demo.
Thanks,
Phill
Hi Everyone,
Slight name change from Square Web Payments SDK & Cards to Square Payment Form (Web Payments SDK).
Thanks,
Phill
Thanks for the response Phill. One more question, does Square checkout also use the API to update inventory? If I use Swuare Checkout to connect my site to the Square POS, will the site update the inventory count in the POS, and “reject” sales when the POS has zero inventory available?
Hi @zach8, The Square Online Checkout plugin doesn’t use the Inventory API in the plugin code directly although it’s on our roadmap to build a separate Square Inventory & Catalog plugin.
We do have a Square POS (In-Person Payments) plugin for Point of Sale scenarios.
I’d recommend reaching out to Square Developer Support to ask how these APIs work with the inventory amounts as I’m not 100% sure and don’t want to give incorrect information.
Hope that helps
Phill
Hi Phill, thanks again for your reponse. Just so I’m clear: if I use your plugin to take payment for an item on my bubble app, your plugin will connect to Square to process the payment, but it won’t update Square’s inventory count for the products being sold?
Hi @zach8, just thought I’d put a link here to reference my response on the other forum post.
Let me know if you have any other questions.
Thanks,
Phill
Hi @Phill.NullaCode - I started using it and have one question.
I can use “create card payment” and ”save card”, but I don’t know how to use a saved card to make a payment without entering the card information at the next payment.
Cloud you tell me how to do ?
Hi @yubikiri.app, sure I can help! When you save a card on file it creates a Card Id for the Customer, you can use this Card Id as the Source Id when you use the Create Card Payment action.
You can get the Card Ids for a specific customer using the free Square Customers plugin.
Let me know if you have any questions!
Thanks,
Phill