Post by ScottDellinger » Sun Sep 17, 2017 12:26 am

When making a credit card payment in Opencart 3 using the Square extension, the payment goes through (I can see it in Square), but the order does not appear to go through on the Opencart side of things.

Image

The screenshot above (credit card info removed) was a successful payment, but an error message comes up and the page does not continue. Unfortunately, it's an empty error telling me nothing.

If I go to Sales > Orders in Opencart, the order is not there unless I filter for missing orders.

Does anyone have any idea what might be happening or how I can bug test this further?

Thanks in advance!


Posts

Joined
Sun Aug 27, 2017 4:31 am

Post by straightlight » Tue Nov 14, 2017 9:44 am

Replace the following files into your store and see if that resolves the issue after clearing all caches:

- https://github.com/opencart/opencart/bl ... uareup.php
- https://github.com/opencart/opencart/bl ... order.twig

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by psjrules » Tue Jun 30, 2020 3:36 am

Hello,
I am having a similar error. But this is only happening when a discount coupon code (or any form of extension that will lead to original price reduction, e.g voucher, store credit) is used.
Is there something I need to look for? I have spent the whole day troubleshooting and looking for resources. Purchased a coupon extension thinking it might just fix whatever bug is in the system.
Version 3.0.3.2

Below is from the error log:
2020-06-29 19:31:03 - SQUAREUP DEBUG START...
2020-06-29 19:31:03 - SQUAREUP ENDPOINT: https://connect.squareup.com/v2/locatio ... ansactions
2020-06-29 19:31:03 - SQUAREUP HEADERS: Array
(
[0] => Authorization: Bearer EAAAEOhBJTifYE8c2OGJ-Iik8D9lThKw31-XqU51oJ-WgHw06Tm5NsXJhwW
[1] => Content-Type: application/json
[2] => Square-Version: 2018-09-18
)

2020-06-29 19:31:03 - SQUAREUP PARAMS: {"note":"Order #360","reference_id":"360","idempotency_key":"5efa417797","amount_money":{"amount":1447,"currency":"GBP"},"billing_address":{"first_name":"A","last_name":"A","address_line_1":"FLAT 1, ","address_line_2":"B","locality":"M KEYNES","sublocality":"Buckinghamshire","postal_code":"MK2","country":"GB","organization":"A"},"buyer_email_address":"admin@co.uk","delay_capture":false,"integration_id":"sqi_65a5ac54459940e3600a8561829","shipping_address":{"first_name":"S ","last_name":"A","address_line_1":"5 , ","address_line_2":"S,","locality":"R,","sublocality":"Berkshire","postal_code":"RG7","country":"GB","organization":""},"card_nonce":"cnon:CBESEPYVmjHBrDFO8OC7v0"}
2020-06-29 19:31:05 - SQUAREUP VERBOSE LOG:
* Trying 74.122.189.132:443...
* Connected to connect.squareup.com (74.123.189.152) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
* subject: C=US; ST=California; L=San Francisco; O=Square, Inc.; CN=*.squareup.com
* start date: Dec 4 19:05:22 2019 GMT
* expire date: Dec 3 19:35:22 2020 GMT
* subjectAltName: host "connect.squareup.com" matched cert's "*.squareup.com"
* issuer: C=US; O=Entrust, Inc.; OU=See www.entrust.net/legal-terms; OU=(c) 2012 Entrust, Inc. - for authorized use only; CN=Entrust Certification Authority - L1K
* SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x559eace90e80)
> POST /v2/locations/1WHB8909E6AR4/transactions HTTP/2
Host: connect.squareup.com
accept: */*
authorization: Bearer EAAAEOhBJTifYE8c2OGJ-Iik8D9lThKw31-XqU51oJ-WgHw06Tm5NsXJhw
content-type: application/json
square-version: 2018-09-18
content-length: 799

* We are completely uploaded and fine
* old SSL session ID is stale, removing
* Connection state changed (MAX_CONCURRENT_STREAMS == 100)!
< HTTP/2 200
< content-type: application/json
< square-version: 2018-09-18
< vary: Origin, Accept-Encoding
< x-content-type-options: nosniff
< x-download-options: noopen
< x-frame-options: SAMEORIGIN
< x-permitted-cross-domain-policies: none
< x-xss-protection: 1; mode=block
< date: Mon, 29 Jun 2020 19:31:05 GMT
< content-length: 603
< strict-transport-security: max-age=631152000; includeSubDomains; preload
<
* Connection #0 to host connect.squareup.com left intact
=========
2020-06-29 19:31:05 - SQUAREUP RESULT: {"transaction":{"id":"F3CZpj5Gn1S69ta5EiBm","location_id":"1WHB8909E","created_at":"2020-06-29T19:31:05Z","tenders":[{"id":"3jGBOVepJkBF691oGpZekcCCvaB","location_id":"1WHB8909E6","transaction_id":"F3CZpj5Gn1S69ta5EiBmC","created_at":"2020-06-29T19:31:04Z","note":"Order #360","amount_money":{"amount":1447,"currency":"GBP"},"type":"CARD","card_details":{"status":"CAPTURED","card":{"card_brand":"MASTERCARD","last_4":"2000","fingerprint":"sq-1-31J68_SYUTZqFCP3DSCkrQX92FeNfcmgPUlGUg0zV_ybSm4gFM1Cq6aI5l"},"entry_method":"KEYED"}}],"reference_id":"360","product":"EXTERNAL_API"}}

New member

Posts

Joined
Fri Jan 11, 2019 6:57 pm
Who is online

Users browsing this forum: Majestic-12 [Bot] and 9 guests