Giter Site home page Giter Site logo

Comments (7)

perrytew avatar perrytew commented on June 20, 2024

Hey jonstavis,

The validation routine has some checks within it to disable validation of the shipping field due to certain conditions, such as the cart not needing shipping, etc. The urls you provide above are very useful. Could you also post your cart json and the server response json? Be sure to remove any sensitive information. If we could see the json payload and response, we could construct a test harness and give you specific insight as to why you're getting these responses.

Thanks,
Perry

from responsive_checkout.

jonstavis avatar jonstavis commented on June 20, 2024

Thanks for your response. Here you go.

Response:

HTTP/1.1 100 Continue

HTTP/1.1 200 OK
Date: Mon, 28 Apr 2014 12:13:38 GMT
Server: Apache
Content-Type: application/json
Vary: Accept-Encoding
Content-Encoding: gzip
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked

["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 billing country.","Please specify your email."]

Post data:

{"total":0
"password":null
"email":""
"merchantId":""
"errors":null
"shipToFirstName":""
"shipToLastName":""
"shipToAddress1":""
"shipToAddress2":""
"shipToCity":""
"shipToState":""
"shipToCompany":""
"shipToCountry":""
"shipToPhone":""
"screenBrandingThemeCode":"DFLT"
"items":[{"itemId":"test123"
"quantity":1}]
"buysafeBondAvailable":false
"buysafeBondWanted":true
"buysafeBondCost":null
"insureShipAvailable":false
"insureShipWanted":null
"insureShipCost":null
"subtotalDiscount":0
"tax":0
"customField1":null
"customField2":null
"customField3":null
"customField4":null
"customField5":null
"customField6":null
"customField7":null
"customerProfile":null
"insureShipSeparate":false
"surcharge":0
"taxRate":0
"shippingMethod":""
"taxableSubtotal":0
"taxableSubtotalDiscount":0
"advertisingSource":""
"paymentMethod":"Credit Card"
"ipAddress":"127.0.0.1"
"subtotal":0
"deliveryDate":null
"shipToResidential":true
"coupons":[]
"taxCounty":""
"billToFirstName":""
"billToLastName":""
"giftEmail":null
"comments":null
"shipToTitle":""
"shipOnDate":null
"upsellPathCode":null
"gift":false
"giftCharge":0
"giftWrapCost":0
"giftMessage":null
"purchaseOrderNumber":""
"giftCertificateAmount":null
"shipToEveningPhone":""
"ccEmail":null
"creditCardToken":null
"liftGate":false
"taxExempt":false
"billToCompany":""
"billToAddress1":""
"billToAddress2":""
"billToCity":""
"billToState":""
"billToCountry":""
"billToEveningPhone":""
"storeCreditCard":false
"buysafeBondFree":false
"buysafeCartDisplayText":null
"buysafeCartDisplayUrl":null
"arbitraryTax":null
"arbitraryTaxableSubtotal":null
"arbitraryTaxRate":null
"specialInstructions":""
"emailConfirm":""
"arbitraryShippingHandlingTotal":null
"threatMetrixParams":null
"amazonOrderReferenceId":null
"creditCardType":""
"creditCardExpirationMonth":0
"creditCardExpirationYear":0
"creditCardNumber":""
"affiliateId":null
"giftCertificate":null
"loggedIn":false
"cartId":"**
***********"
"shipToPostalCode":""
"shippingHandling":0
"mailingListOptIn":true
"giftCertificateRemainingBalanceAfterOrder":null
"billToTitle":""
"billToPostalCode":""
"billToDayPhone":""
"creditCardVerificationNumber":""
"hasGoogleCheckout":false
"googleCheckoutCompatible":false
"googleCheckoutButtonUrl":null
"googleCheckoutButtonAltText":null
"payPalButtonUrl":null
"payPalButtonAltText":null
"hasPayPal":false
"payPalCompatible":false
"subtotalWithDiscount":0
"taxableSubtotalWithDiscount":0
"shippingHandlingDiscount":0
"shippingHandlingWithDiscount":0
"creditCardTypes":["Visa"]
"collectCreditCardVerificationNumber":true
"needShipping":false
"customerProfileCreditCardId":null
"diagnostics":null
"amazonButtonUrl":null
"amazonWidgetUrl":null
"hasAmazon":false
"amazonMerchantId":null
"needPayment":true}

from responsive_checkout.

perrytew avatar perrytew commented on June 20, 2024

Hey, the next question I have is this item you're testing with. test123. Does it have shipping dimensions and a weight associated with it? Do this: go to the items page, find your test item, and click on the "Links" link. Find the item buy link and open it in a new window. Walk through the standard checkout and place a test order. See if it requires shipping there and what validation messages it gives you along the way. I'm wondering if the item you're testing with triggers the "needs shipping" flag. If it doesn't, then no validation will be done.

from responsive_checkout.

jonstavis avatar jonstavis commented on June 20, 2024

That was the problem. I added shipping to the item and shipping fields are now validating.

The checks that I pass into the URL are still not working, but I'm satisfied with the default billing/shipping validations that now seem to be taking place.

Closing this issue. Thank you very much!

from responsive_checkout.

perrytew avatar perrytew commented on June 20, 2024

Hey, if you're still having problems, either keep this issue open or open a new one. We're here to help!

from responsive_checkout.

jonstavis avatar jonstavis commented on June 20, 2024

Thanks. I am curious why my ?check=X&check=Y&check=Z isn't working but it's not a showstopper because as I said the default validations are just what I need!

from responsive_checkout.

ritu-arosys avatar ritu-arosys commented on June 20, 2024

i am working on responsive checkout and at last on validation get again and again error "please specify your credit card number". but i have already put the card number. please help me on this

from responsive_checkout.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.