Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Response has a problem with src causing failure of loading of javascript file. #1

Open
VarunBatraIT opened this issue May 18, 2016 · 0 comments

Comments

@VarunBatraIT
Copy link

I am receiving this response:

<form id="2checkout" action="https://www.2checkout.com/checkout/purchase" method="post"><input type="hidden" name="mode" value="2CO"/><input type="hidden" name="li_0_name" value="Test Product"/><input type="hidden" name="li_0_price" value="0.01"/><input type="hidden" name="card_holder_name" value="Testing Tester"/><input type="hidden" name="email" value="[email protected]"/><input type="hidden" name="street_address" value="123 test st"/><input type="hidden" name="city" value="Columbus"/><input type="hidden" name="state" value="Ohio"/><input type="hidden" name="zip" value="43123"/><input type="hidden" name="country" value="USA"/><input type="hidden" name="sid" value="202798592"/><input type="submit" value="Checkout" /></form><script src=https://www.2checkout.com/static/checkout/javascript/direct.min.js"></script>

Note

<script src=https://www.2checkout.com/static/checkout/javascript/direct.min.js"></script>

Last script tag is missing " after src= but has a " after min.js

Nothing fancy just a demo

    var tco = new Twocheckout({
        sellerId: ""
    });

    var params = {
        'mode': '2CO',
        'li_0_name': 'Test Product',
        'li_0_price': '0.01',
        'card_holder_name': 'Testing Tester',
        'email': '[email protected]',
        'street_address': '123 test st',
        'city': 'Columbus',
        'state': 'Ohio',
        'zip': '43123',
        'country': 'USA'
    };

    var form = tco.checkout.direct(params, 'Checkout');
    console.log(form)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant