Closed him-developer closed 6 years ago
Same cart id? Let me review your logs.
What merchant id is this?
@him-developer You're posting this issue in the wrong project. This is the PHP SDK project.
@perrytew merchant id is ZUMA
@ucjonathan I am totally aware of this and apologized in first line. Please point me to correct repository if there is any.
https://secure.ultracart.com/merchant/integrationcenter/checkoutApiCallHistoryViewLoad.do?checkoutApiCallHistoryOid=76550647 (don't worry -- only a properly logged in merchant can see that link)
The response to that is: "Invalid Login. Check your credentials and IP access."
I have verified that there are no IP blocks on ZUMA. I know you've checked everything, but you need to check it again. And re-check it. Somewhere in the code is a username/password combination that is outdated and needed updating.
There is no other solution here -- the username/password is not correct and must be fixed. The reason this error only shows at finalizeOrder is because that is the only authenticated call make. The rest are non-authenticated.
Beyond that error, we need to understand why you're reusing cart ids. That should not happen. Please audit your routines that are establishing new carts for customers and make sure they're using customer specific cookies, etc. instead of server side storage. I've seen your work, and I know you're competent, but I can't see your server side code -- so I can only make suggestions.
@perrytew we are not using same cart id, what I am trying to say is no matter what cart id and request data we use for finalizOrder, the log created at Ultracart login is exact same. If you closely into failed logs data its all identical. We are not sending this data again and again.
So for our every call, exact same log is created.
My apologies for not understanding the problem. I think I do now. Let me review your support case. I believe you have a response listed in there.
Well, it's not for lack of effort that this problem remains. It's quite odd. I've reviewed recent calls. They cart id does in fact change. However I'm perplexed by what I'm seeing.
Example: 00D3D7C27D371B0165819EFF1A051B00
It shows 3 finalizeOrder calls.
When I review them, the first call is actually successful. It generates order ZUMA-052815 to a "Linda". I then see two more finalizeOrder calls made about 40 seconds later. They use the same cart id, but they're missing information and generate validation errors.
{ "successful": false, "errorMessages": ["Please specify your billing first name.", "Please specify your billing last name.", "Please specify your billing address.", "Please specify your billing city.", "Please specify your billing state.", "Please specify your billing zip code.", "Please specify your email.", "Please select your payment method preference.", "Please add at least one item to your shopping cart before checkout."] }
I need to understand why multiple finalizeOrder calls are made. There should only ever be one. Does this checkout have an upsell after included?
If you're doing custom upsells you must do those before calling finalizeOrder. Honestly our integrated upsells are so amazing in functionality and are battle hardened. If you are are indeed trying to do upsells I would encourage you to use the StoreFront Upsells by simply performing a checkout handoff. We'll do the upsells then finalize the order.
We are not using upsells and multiple calls may be result of CC validations errors followed by correct submissions.
I am still facing wrong credentials issue upon my testing. It seems my IP or server IP is blocked from time to time. I also keep kicked out of Ultracart login at secure.ultracart.com and I have received an email for blocked IP couple of days ago. Below is some excerpt from email:
Self-serve links are below. Please read this entire email.
Dear Himanshu Saini,
Due to PCI regulations we have blocked access from the
IP address 67.225.162.X due to six failed login attempts.
Second thing it seems over time JSON provided by your API may have been changed slightly as httpful is giving us this error now : unable to parse response as json.
You should know that a login may only be used at one time in one place. I hope you're not using your developer login as the api user. If you do, it will be invalidated constantly back and forth as you login. Please ensure you're using a separate login always for api usage. The latest generation of our api using tokens to avoid this limitation.
https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/1376359/Setup+API+User
Please give me an example of the json that cannot be parsed. I'll analyze.
The above link is for whitelisting an ip address to prevent blocks.
We have whitelisted the Server IP (67.225.162.218) from the start and I have been using my own credentials in the code for more than a year and processed thousands of orders smoothly. But recently this finalizeOrder call started to give credentials or IP issue. This is happening on daily basis:
Okay, thank you for confirming the IP settings.
Please confirm/correct for me what I know:
Could you post the returned headers from one of these failures?
I'm still baffled by the cart id repeating.
its not just cart ID, if you look into the records details, you will find the all request/input data is also same. It seems this request or only log just keep on generating again and again everyday.
Apart from this orders are still populating good, if credentials were bad no order should be placed as website is the only channel for order creation.
Below you can find the response we are getting now. Earlier body field was containing all order details. (Password value is masked but its correct.)
Httpful\Response Object
(
[body] =>
[raw_body] =>
[headers] => Httpful\Response\Headers Object
(
[headers:Httpful\Response\Headers:private] => Array
(
[date] => Wed, 29 Aug 2018 17:06:27 GMT
[server] => Apache
[content-length] => 0
[vary] => Accept-Encoding
[connection] => close
[content-type] => text/plain; charset=UTF-8
)
)
[raw_headers] => HTTP/1.1 200 OK
Date: Wed, 29 Aug 2018 17:06:27 GMT
Server: Apache
Content-Length: 0
Vary: Accept-Encoding
Connection: close
Content-Type: text/plain; charset=UTF-8
[request] => Httpful\Request Object
(
[uri] => https://zuma.ultracartstore.com/rest/cart/finalizeOrder
[method] => POST
[headers] => Array
(
[X-UC-Merchant-Id] => ZUMA
[X-UC-Forwarded-For] => 117.197.6.155
[cache-control] => no-cache
[Content-Length] => 8942
)
[raw_headers] => POST /rest/cart/finalizeOrder HTTP/1.1
Host: zuma.ultracartstore.com
Expect:
User-Agent: Httpful/0.2.20 (cURL/7.38.0 PHP/5.6.30 (Linux) Apache Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0)
Content-Type: application/json
Accept: */*; q=0.5, text/plain; q=0.8, text/html;level=3;
X-UC-Merchant-Id: ZUMA
X-UC-Forwarded-For: 117.197.6.155
cache-control: no-cache
Content-Length: 8942
[strict_ssl] =>
[content_type] => application/json
[expected_type] =>
[additional_curl_opts] => Array
(
)
[auto_parse] =>
[serialize_payload_method] => 2
[username] =>
[password] =>
[serialized_payload] => {"cart":{"affiliateSubId":null,"customerProfileCreditCardId":null,"diagnostics":null,"amazonButtonUrl":null,"amazonWidgetUrl":null,"hasAmazon":false,"amazonMerchantId":null,"needPayment":true,"subtotalLocalized":59,"subtotalDiscountLocalized":0,"subtotalWithDiscountLocalized":59,"taxLocalized":0,"taxableSubtotalLocalized":0,"taxableSubtotalDiscountLocalized":0,"taxableSubtotalWithDiscountLocalized":0,"buysafeBondCostLocalized":null,"shippingHandlingLocalized":5.95,"shippingHandlingDiscountLocalized":0,"shippingHandlingWithDiscountLocalized":5.95,"giftChargeLocalized":0,"giftCertificateAmountLocalized":0,"giftCertificateRemainingBalanceAfterOrderLocalized":null,"giftWrapCostLocalized":0,"surchargeLocalized":0,"subtotalLocalizedFormatted":"$59.00","subtotalDiscountLocalizedFormatted":"$0.00","subtotalWithDiscountLocalizedFormatted":"$59.00","taxLocalizedFormatted":"$0.00","taxableSubtotalLocalizedFormatted":"$0.00","taxableSubtotalDiscountLocalizedFormatted":"$0.00","taxableSubtotalWithDiscountLocalizedFormatted":"$0.00","buysafeBondCostLocalizedFormatted":null,"shippingHandlingLocalizedFormatted":"$5.95","shippingHandlingDiscountLocalizedFormatted":"$0.00","shippingHandlingWithDiscountLocalizedFormatted":"$5.95","giftChargeLocalizedFormatted":"$0.00","giftCertificateAmountLocalizedFormatted":"$0.00","giftCertificateRemainingBalanceAfterOrderLocalizedFormatted":null,"giftWrapCostLocalizedFormatted":"$0.00","surchargeLocalizedFormatted":"$0.00","totalLocalizedFormatted":"$64.95","payPalBmlButtonUrl":"https:\/\/secure.ultracart.com\/checkout\/images\/paypalBml.png","payPalBmlLegalUrl":"https:\/\/www.securecheckout.billmelater.com\/paycapture-content\/fetch?hash=AU826TU8&content=\/bmlweb\/ppwpsiw.html","payPalBmlLegalImageUrl":"https:\/\/www.paypalobjects.com\/webstatic\/en_US\/btn\/btn_bml_text.png","supportsCustomerProfiles":true,"supportsGiftCertificates":false,"supportsAdvertisingSources":false,"eCheckBankAccountNumberConfirm":null,"total":64.95,"ipAddress":"117.197.6.155","password":null,"merchantId":"ZUMA","advertisingSource":"","taxCounty":"","shipOnDate":null,"taxRate":0,"baseCurrencyCode":"USD","shippingMethod":"USPS: First Class","taxableSubtotal":0,"taxableSubtotalDiscount":0,"errors":null,"email":"xxxxxx","screenBrandingThemeCode":"SF4116","shipToFirstName":"TEST","shipToLastName":"IGNORE","shipToAddress1":"8550 SE Spencer Dr","shipToAddress2":"","shipToCity":"HAPPY VALLEY","shipToState":"OR","shipToCompany":"","shipToCountry":"United States","shipToPhone":"9785513736","languageIsoCode":null,"items":[{"defaultImageSsl":"\/\/secure.ultracart.com\/itemmultimedia\/ZUMA\/ZUMGRJ\/cart-green.jpg","defaultThumbnailSsl":"https:\/\/secure.ultracart.com\/thumbs\/1482424676150\/ZUMA\/2\/8\/80-80-283104930F4583932F3984DE66B7DAB7.jpg","unitCostLocalized":59,"unitCostWithDiscountLocalized":59,"arbitraryUnitCostLocalized":null,"unitCostLocalizedFormatted":"$59.00","unitCostWithDiscountLocalizedFormatted":"$59.00","arbitraryUnitCostLocalizedFormatted":null,"manufacturerSuggestedRetailPriceLocalizedFormatted":null,"totalCostLocalized":59,"totalCostLocalizedFormatted":"$59.00","totalCostWithDiscountLocalized":59,"totalCostWithDiscountLocalizedFormatted":"$59.00","discountLocalized":0,"discountLocalizedFormatted":"$0.00","position":1,"totalCost":59,"discount":0,"totalCostWithDiscount":59,"manufacturerSuggestedRetailPriceLocalized":null,"schedules":[],"itemOid":5346245,"manufacturerSuggestedRetailPrice":null,"multimedias":[{"viewUrl":"http:\/\/secure.ultracart.com\/itemmultimedia\/ZUMA\/ZUMGRJ\/cart-green.jpg","default":true,"type":"Image","description":null,"code":null,"imageWidth":540,"imageHeight":540,"thumbnails":[{"httpsUrl":"https:\/\/secure.ultracart.com\/thumbs\/1482368190393\/ZUMA\/2\/8\/100-100-283104930F4583932F3984DE66B7DAB7.jpg","httpUrl":"http:\/\/secure.ultracart.com\/thumbs\/1482368190393\/ZUMA\/2\/8\/100-100-283104930F4583932F3984DE66B7DAB7.jpg","height":100,"width":100},{"httpsUrl":"https:\/\/secure.ultracart.com\/thumbs\/1482424676150\/ZUMA\/2\/8\/80-80-283104930F4583932F3984DE66B7DAB7.jpg","httpUrl":"http:\/\/secure.ultracart.com\/thumbs\/1482424676150\/ZUMA\/2\/8\/80-80-283104930F4583932F3984DE66B7DAB7.jpg","height":80,"width":80},{"httpsUrl":"https:\/\/secure.ultracart.com\/thumbs\/1487878566500\/ZUMA\/2\/8\/220-220-283104930F4583932F3984DE66B7DAB7.jpg","httpUrl":"http:\/\/secure.ultracart.com\/thumbs\/1487878566500\/ZUMA\/2\/8\/220-220-283104930F4583932F3984DE66B7DAB7.jpg","height":220,"width":220},{"httpsUrl":"https:\/\/secure.ultracart.com\/thumbs\/1492190854693\/ZUMA\/0\/B\/80-80-0B5CF72BB6D95ECDD48F5F5916D6AE94.jpg","httpUrl":"http:\/\/secure.ultracart.com\/thumbs\/1492190854693\/ZUMA\/0\/B\/80-80-0B5CF72BB6D95ECDD48F5F5916D6AE94.jpg","height":80,"width":80},{"httpsUrl":"https:\/\/secure.ultracart.com\/thumbs\/1516303975753\/ZUMA\/7\/8\/80-80-782B1C5827A78B27854071A4CE8F15AA.png","httpUrl":"http:\/\/secure.ultracart.com\/thumbs\/1516303975753\/ZUMA\/7\/8\/80-80-782B1C5827A78B27854071A4CE8F15AA.png","height":80,"width":80}],"excludeFromGallery":false}],"viewUrl":"http:\/\/secure.ultracart.com\/catalog\/ZUMA\/ZUMGRJ.html","kitComponentOptions":[],"defaultImageUrl":"http:\/\/secure.ultracart.com\/itemmultimedia\/ZUMA\/ZUMGRJ\/cart-green.jpg","defaultThumbnailUrl":"http:\/\/secure.ultracart.com\/thumbs\/1482424676150\/ZUMA\/2\/8\/80-80-283104930F4583932F3984DE66B7DAB7.jpg","length":{"value":9,"uom":"IN"},"attributes":[],"height":{"value":4,"uom":"IN"},"width":{"value":4,"uom":"IN"},"description":"Zuma Green Juice","weight":{"value":13,"uom":"OZ"},"options":[],"variations":{},"quantity":1,"kit":false,"unitCost":59,"preorder":false,"extendedDescription":"30 servings","upsell":false,"arbitraryUnitCost":null,"unitCostWithDiscount":59,"minimumQuantity":1,"maximumQuantity":null,"autoOrderSchedule":null,"itemId":"ZUMGRJ","autoOrderLastRebillDts":null}],"currencyCode":"USD","customField1":null,"customField2":null,"customField3":"117.197.6.155","customField4":null,"customField5":null,"customField6":null,"customField7":null,"customerProfile":null,"creditCardNumber":"XXXX-XXXX-XXXX-1111","creditCardVerificationNumber":"XXX","coupons":[],"paymentMethod":"Credit Card","subtotal":59,"insureShipCost":null,"deliveryDate":null,"shipToResidential":true,"totalLocalized":64.95,"continueShoppingUrl":null,"rtgCode":null,"giftEmail":null,"comments":null,"shipToEveningPhone":"","storeCreditCard":false,"shipToTitle":"","exchangeRate":null,"buysafeBondAvailable":false,"buysafeBondCost":null,"buysafeBondFree":false,"buysafeCartDisplayText":null,"buysafeCartDisplayUrl":null,"arbitraryTax":null,"arbitraryTaxableSubtotal":null,"arbitraryTaxRate":null,"specialInstructions":"","upsellPathCode":null,"shipping3rdPartyAccountNumber":null,"giftMessage":null,"checkNumber":0,"emailConfirm":"","gift":false,"giftWrapTitle":null,"giftWrapCost":0,"giftCharge":0,"surcharge":0,"eCheckBankABACode":"","eCheckBankAccountNumber":"","eCheckBankAccountType":"","eCheckBankName":"","eCheckBankAccountName":"","eCheckBankOwnerType":"","purchaseOrderNumber":"","eCheckCustomerTaxId":"","eCheckDriversLicenseDOB":"","eCheckDriversLicenseNumber":"","eCheckDriversLicenseState":"","giftCertificateAmount":0,"buysafeBondWanted":false,"insureShipAvailable":false,"insureShipWanted":false,"insureShipSeparate":false,"ccEmail":null,"creditCardToken":null,"arbitraryShippingHandlingTotal":null,"liftGate":false,"threatMetrixParams":null,"amazonOrderReferenceId":null,"billingDifferent":null,"amazonAddressSelected":false,"amazonPaymentSelected":false,"agreeTerms":null,"taxExempt":false,"subtotalDiscount":0,"tax":0,"affiliateId":null,"giftCertificate":null,"loggedIn":false,"hasGoogleCheckout":false,"googleCheckoutCompatible":false,"googleCheckoutButtonUrl":null,"googleCheckoutButtonAltText":null,"payPalButtonUrl":"https:\/\/www.paypal.com\/en_US\/i\/btn\/btn_xpressCheckoutsm.gif","payPalButtonAltText":"Fast, secure checkout with PayPal","hasPayPal":true,"payPalCompatible":true,"mailingListOptIn":false,"subtotalWithDiscount":59,"taxableSubtotalWithDiscount":0,"shippingHandling":5.95,"shippingHandlingDiscount":0,"shippingHandlingWithDiscount":5.95,"giftCertificateRemainingBalanceAfterOrder":null,"shipToPostalCode":"97086-7618","billToDayPhone":"9785513736","billToEveningPhone":"9785513736","billToFirstName":"TEST","billToLastName":"IGNORE","billToTitle":"Your Highness","billToCompany":"","billToAddress1":"8550 SE Spencer Dr","billToAddress2":"","billToCity":"Happy Valley","billToState":"OR","billToPostalCode":"97086-7618","billToCountry":"United States","cartId":"71B129AE707CCE016586A099C0051B00","creditCardType":"Visa","creditCardExpirationMonth":9,"creditCardExpirationYear":2023,"creditCardTypes":["AMEX","Diners Club","Discover","JCB","MasterCard","VISA"],"collectCreditCardVerificationNumber":true,"needShipping":true},"credentials":{"merchantId":"ZUMA","login":"xxxxxx","password":"xxxxxxxx"},"setupNextCart":true}
[payload] => {"cart":{"affiliateSubId":null,"customerProfileCreditCardId":null,"diagnostics":null,"amazonButtonUrl":null,"amazonWidgetUrl":null,"hasAmazon":false,"amazonMerchantId":null,"needPayment":true,"subtotalLocalized":59,"subtotalDiscountLocalized":0,"subtotalWithDiscountLocalized":59,"taxLocalized":0,"taxableSubtotalLocalized":0,"taxableSubtotalDiscountLocalized":0,"taxableSubtotalWithDiscountLocalized":0,"buysafeBondCostLocalized":null,"shippingHandlingLocalized":5.95,"shippingHandlingDiscountLocalized":0,"shippingHandlingWithDiscountLocalized":5.95,"giftChargeLocalized":0,"giftCertificateAmountLocalized":0,"giftCertificateRemainingBalanceAfterOrderLocalized":null,"giftWrapCostLocalized":0,"surchargeLocalized":0,"subtotalLocalizedFormatted":"$59.00","subtotalDiscountLocalizedFormatted":"$0.00","subtotalWithDiscountLocalizedFormatted":"$59.00","taxLocalizedFormatted":"$0.00","taxableSubtotalLocalizedFormatted":"$0.00","taxableSubtotalDiscountLocalizedFormatted":"$0.00","taxableSubtotalWithDiscountLocalizedFormatted":"$0.00","buysafeBondCostLocalizedFormatted":null,"shippingHandlingLocalizedFormatted":"$5.95","shippingHandlingDiscountLocalizedFormatted":"$0.00","shippingHandlingWithDiscountLocalizedFormatted":"$5.95","giftChargeLocalizedFormatted":"$0.00","giftCertificateAmountLocalizedFormatted":"$0.00","giftCertificateRemainingBalanceAfterOrderLocalizedFormatted":null,"giftWrapCostLocalizedFormatted":"$0.00","surchargeLocalizedFormatted":"$0.00","totalLocalizedFormatted":"$64.95","payPalBmlButtonUrl":"https:\/\/secure.ultracart.com\/checkout\/images\/paypalBml.png","payPalBmlLegalUrl":"https:\/\/www.securecheckout.billmelater.com\/paycapture-content\/fetch?hash=AU826TU8&content=\/bmlweb\/ppwpsiw.html","payPalBmlLegalImageUrl":"https:\/\/www.paypalobjects.com\/webstatic\/en_US\/btn\/btn_bml_text.png","supportsCustomerProfiles":true,"supportsGiftCertificates":false,"supportsAdvertisingSources":false,"eCheckBankAccountNumberConfirm":null,"total":64.95,"ipAddress":"117.197.6.155","password":null,"merchantId":"ZUMA","advertisingSource":"","taxCounty":"","shipOnDate":null,"taxRate":0,"baseCurrencyCode":"USD","shippingMethod":"USPS: First Class","taxableSubtotal":0,"taxableSubtotalDiscount":0,"errors":null,"email":"xxxxxx","screenBrandingThemeCode":"SF4116","shipToFirstName":"TEST","shipToLastName":"IGNORE","shipToAddress1":"8550 SE Spencer Dr","shipToAddress2":"","shipToCity":"HAPPY VALLEY","shipToState":"OR","shipToCompany":"","shipToCountry":"United States","shipToPhone":"9785513736","languageIsoCode":null,"items":[{"defaultImageSsl":"\/\/secure.ultracart.com\/itemmultimedia\/ZUMA\/ZUMGRJ\/cart-green.jpg","defaultThumbnailSsl":"https:\/\/secure.ultracart.com\/thumbs\/1482424676150\/ZUMA\/2\/8\/80-80-283104930F4583932F3984DE66B7DAB7.jpg","unitCostLocalized":59,"unitCostWithDiscountLocalized":59,"arbitraryUnitCostLocalized":null,"unitCostLocalizedFormatted":"$59.00","unitCostWithDiscountLocalizedFormatted":"$59.00","arbitraryUnitCostLocalizedFormatted":null,"manufacturerSuggestedRetailPriceLocalizedFormatted":null,"totalCostLocalized":59,"totalCostLocalizedFormatted":"$59.00","totalCostWithDiscountLocalized":59,"totalCostWithDiscountLocalizedFormatted":"$59.00","discountLocalized":0,"discountLocalizedFormatted":"$0.00","position":1,"totalCost":59,"discount":0,"totalCostWithDiscount":59,"manufacturerSuggestedRetailPriceLocalized":null,"schedules":[],"itemOid":5346245,"manufacturerSuggestedRetailPrice":null,"multimedias":[{"viewUrl":"http:\/\/secure.ultracart.com\/itemmultimedia\/ZUMA\/ZUMGRJ\/cart-green.jpg","default":true,"type":"Image","description":null,"code":null,"imageWidth":540,"imageHeight":540,"thumbnails":[{"httpsUrl":"https:\/\/secure.ultracart.com\/thumbs\/1482368190393\/ZUMA\/2\/8\/100-100-283104930F4583932F3984DE66B7DAB7.jpg","httpUrl":"http:\/\/secure.ultracart.com\/thumbs\/1482368190393\/ZUMA\/2\/8\/100-100-283104930F4583932F3984DE66B7DAB7.jpg","height":100,"width":100},{"httpsUrl":"https:\/\/secure.ultracart.com\/thumbs\/1482424676150\/ZUMA\/2\/8\/80-80-283104930F4583932F3984DE66B7DAB7.jpg","httpUrl":"http:\/\/secure.ultracart.com\/thumbs\/1482424676150\/ZUMA\/2\/8\/80-80-283104930F4583932F3984DE66B7DAB7.jpg","height":80,"width":80},{"httpsUrl":"https:\/\/secure.ultracart.com\/thumbs\/1487878566500\/ZUMA\/2\/8\/220-220-283104930F4583932F3984DE66B7DAB7.jpg","httpUrl":"http:\/\/secure.ultracart.com\/thumbs\/1487878566500\/ZUMA\/2\/8\/220-220-283104930F4583932F3984DE66B7DAB7.jpg","height":220,"width":220},{"httpsUrl":"https:\/\/secure.ultracart.com\/thumbs\/1492190854693\/ZUMA\/0\/B\/80-80-0B5CF72BB6D95ECDD48F5F5916D6AE94.jpg","httpUrl":"http:\/\/secure.ultracart.com\/thumbs\/1492190854693\/ZUMA\/0\/B\/80-80-0B5CF72BB6D95ECDD48F5F5916D6AE94.jpg","height":80,"width":80},{"httpsUrl":"https:\/\/secure.ultracart.com\/thumbs\/1516303975753\/ZUMA\/7\/8\/80-80-782B1C5827A78B27854071A4CE8F15AA.png","httpUrl":"http:\/\/secure.ultracart.com\/thumbs\/1516303975753\/ZUMA\/7\/8\/80-80-782B1C5827A78B27854071A4CE8F15AA.png","height":80,"width":80}],"excludeFromGallery":false}],"viewUrl":"http:\/\/secure.ultracart.com\/catalog\/ZUMA\/ZUMGRJ.html","kitComponentOptions":[],"defaultImageUrl":"http:\/\/secure.ultracart.com\/itemmultimedia\/ZUMA\/ZUMGRJ\/cart-green.jpg","defaultThumbnailUrl":"http:\/\/secure.ultracart.com\/thumbs\/1482424676150\/ZUMA\/2\/8\/80-80-283104930F4583932F3984DE66B7DAB7.jpg","length":{"value":9,"uom":"IN"},"attributes":[],"height":{"value":4,"uom":"IN"},"width":{"value":4,"uom":"IN"},"description":"Zuma Green Juice","weight":{"value":13,"uom":"OZ"},"options":[],"variations":{},"quantity":1,"kit":false,"unitCost":59,"preorder":false,"extendedDescription":"30 servings","upsell":false,"arbitraryUnitCost":null,"unitCostWithDiscount":59,"minimumQuantity":1,"maximumQuantity":null,"autoOrderSchedule":null,"itemId":"ZUMGRJ","autoOrderLastRebillDts":null}],"currencyCode":"USD","customField1":null,"customField2":null,"customField3":"117.197.6.155","customField4":null,"customField5":null,"customField6":null,"customField7":null,"customerProfile":null,"creditCardNumber":"XXXX-XXXX-XXXX-1111","creditCardVerificationNumber":"XXX","coupons":[],"paymentMethod":"Credit Card","subtotal":59,"insureShipCost":null,"deliveryDate":null,"shipToResidential":true,"totalLocalized":64.95,"continueShoppingUrl":null,"rtgCode":null,"giftEmail":null,"comments":null,"shipToEveningPhone":"","storeCreditCard":false,"shipToTitle":"","exchangeRate":null,"buysafeBondAvailable":false,"buysafeBondCost":null,"buysafeBondFree":false,"buysafeCartDisplayText":null,"buysafeCartDisplayUrl":null,"arbitraryTax":null,"arbitraryTaxableSubtotal":null,"arbitraryTaxRate":null,"specialInstructions":"","upsellPathCode":null,"shipping3rdPartyAccountNumber":null,"giftMessage":null,"checkNumber":0,"emailConfirm":"","gift":false,"giftWrapTitle":null,"giftWrapCost":0,"giftCharge":0,"surcharge":0,"eCheckBankABACode":"","eCheckBankAccountNumber":"","eCheckBankAccountType":"","eCheckBankName":"","eCheckBankAccountName":"","eCheckBankOwnerType":"","purchaseOrderNumber":"","eCheckCustomerTaxId":"","eCheckDriversLicenseDOB":"","eCheckDriversLicenseNumber":"","eCheckDriversLicenseState":"","giftCertificateAmount":0,"buysafeBondWanted":false,"insureShipAvailable":false,"insureShipWanted":false,"insureShipSeparate":false,"ccEmail":null,"creditCardToken":null,"arbitraryShippingHandlingTotal":null,"liftGate":false,"threatMetrixParams":null,"amazonOrderReferenceId":null,"billingDifferent":null,"amazonAddressSelected":false,"amazonPaymentSelected":false,"agreeTerms":null,"taxExempt":false,"subtotalDiscount":0,"tax":0,"affiliateId":null,"giftCertificate":null,"loggedIn":false,"hasGoogleCheckout":false,"googleCheckoutCompatible":false,"googleCheckoutButtonUrl":null,"googleCheckoutButtonAltText":null,"payPalButtonUrl":"https:\/\/www.paypal.com\/en_US\/i\/btn\/btn_xpressCheckoutsm.gif","payPalButtonAltText":"Fast, secure checkout with PayPal","hasPayPal":true,"payPalCompatible":true,"mailingListOptIn":false,"subtotalWithDiscount":59,"taxableSubtotalWithDiscount":0,"shippingHandling":5.95,"shippingHandlingDiscount":0,"shippingHandlingWithDiscount":5.95,"giftCertificateRemainingBalanceAfterOrder":null,"shipToPostalCode":"97086-7618","billToDayPhone":"9785513736","billToEveningPhone":"9785513736","billToFirstName":"TEST","billToLastName":"IGNORE","billToTitle":"Your Highness","billToCompany":"","billToAddress1":"8550 SE Spencer Dr","billToAddress2":"","billToCity":"Happy Valley","billToState":"OR","billToPostalCode":"97086-7618","billToCountry":"United States","cartId":"71B129AE707CCE016586A099C0051B00","creditCardType":"Visa","creditCardExpirationMonth":9,"creditCardExpirationYear":2023,"creditCardTypes":["AMEX","Diners Club","Discover","JCB","MasterCard","VISA"],"collectCreditCardVerificationNumber":true,"needShipping":true},"credentials":{"merchantId":"ZUMA","login":"XXXXXXX","password":"XXXXXXX"},"setupNextCart":true}
[parse_callback] =>
[error_callback] =>
[send_callback] =>
[follow_redirects] =>
[max_redirects] => 25
[payload_serializers] => Array
(
)
[_ch] => Resource id #25
[_debug] =>
)
[code] => 200
[content_type] => text/plain
[parent_type] => text/plain
[charset] => UTF-8
[meta_data] => Array
(
[url] => https://zuma.ultracartstore.com/rest/cart/finalizeOrder
[content_type] => text/plain; charset=UTF-8
[http_code] => 200
[header_size] => 174
[request_size] => 9359
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 1.432173
[namelookup_time] => 1.1E-5
[connect_time] => 0.030667
[pretransfer_time] => 0.106602
[size_upload] => 8942
[size_download] => 0
[speed_download] => 0
[speed_upload] => 6243
[download_content_length] => 0
[upload_content_length] => 8942
[starttransfer_time] => 1.432152
[redirect_time] => 0
[redirect_url] =>
[primary_ip] => 74.116.35.75
[certinfo] => Array
(
)
[primary_port] => 443
[local_ip] => 67.225.162.218
[local_port] => 55150
)
[is_mime_vendor_specific] =>
[is_mime_personal] =>
[parsers:Httpful\Response:private] =>
)
Do you have a cron job or some kind of scheduled job hitting your web site? We've noticed that all the failures happening in 10 minute increments. It's almost as if there's a job running that is doing some kind of uptime check or something and it's triggering the finalizeOrder improperly. Perhaps an indexer or crawler?
It is literally every 10 minutes. Any insight?
Hello Perry,
I got email from Zuma today to stop all website order workflow as they are shutting all their operations. so it seems we need not to put more efforts here now.
Thank you very much for your time and efforts. Really appreciated.
Thanks, Himanshu.
I realize this issue is closed, but just following up for any future readers. We did find a bug on our side with our serialization of the finalizeOrder response. It's been fixed.
Hello Perry,
Sorry this issue do not belong here but I can't find place to report issue for older REST Checkout API.
We have a checkout implementation which has final step with call to rest/finalizeOrder and this worked good for more than a year but recently this finalizeOrder function stopped to give order details in success response. We have not altered code in last couple of months.
We reached Ultracart support team and they suggested us to check logs at Ultracart login and further informed us that we are sending wrong login credentials.
Upon checking logs at Ultracart login, found something strange that no matter what request data we send, input parameter 1 at logs is always same with same cart ID for all failed calls. See below image. Result for all failed calls is: Invalid Login. Check your credentials and IP access."
I have changed my login password (in case it expired) and updated my code with same. I checked the IP address of server and whitelist at Ultracart. I am pretty sure I am sending correct credentials.
I can send you the request and response data if I can have a better communication channel to you than this.
Please look into this and update asap as its hurting our order workflow very badly.
Thanks & Regards, Himanshu