Code Monkey home page Code Monkey logo

cybersource-secure-acceptance's Introduction

Cybersource-secure-acceptance-demo

Working version of demo code provided by Cybersource to create a payment token using silent post secure acceptance method

I had the hardest time working with Cybersource Secure Acceptance service. I found multiple versions of documentation, each with different information like what endpoint to hit.

The PHP demo code provided in the docs was missing pretty much everything needed to make a successful call and create a payment token. Using the code provided by Cybersource, I had to figure out what parameters I was missing on each call. The only error message that was returned to me and recorded in the logs was "missing or invalid request parameter".

UPDATE : When the error is 102 (Request parameters are invalid or missing), the response from Cybersource will include "invalid_fields" with a comma separated string of invalid fields

I updated the code and it should work out-of-the-box.

Create your profiles here: https://ebctest.cybersource.com. Note that you need to contact Cybersource to enable the secure acceptance option for your test account. Once Secure Acceptance has been added to your account, create a profile. The profile will provide the profile_id, access_key, and secret_key required in security.php. Set the customer response page to http://[your_test_domain]/receipt.php

Warning The following doc has the wrong endpoints, but I did use this doc to get the promo working:

Docs 1: http://apps.cybersource.com/library/documentation/dev_guides/Secure_Acceptance_WM/html/wwhelp/wwhimpl/js/html/wwhelp.htm#href=create_token.07.1.html

This doc has the correct endpoints, but not sure if it has other mistakes

Docs 2: http://apps.cybersource.com/library/documentation/dev_guides/Secure_Acceptance_WM/Secure_Acceptance_WM.pdf?searchid=1413330942690

Good luck!

cybersource-secure-acceptance's People

Contributors

unomateo avatar

Watchers

James Cloos avatar

Forkers

husseinghussein

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.