Problem with cybersource testing visa card

1,973 views
Skip to first unread message

msim...@extensionengine.com

unread,
Nov 15, 2016, 11:11:12 AM11/15/16
to General Open edX discussion
Hello everyone,

I'm trying to test out cybersource payment (with VISA) on my clean eucalyptus server. I've checked their documentation and used their VISA test credit card number 4111 1111 1111 1111 (they've also stated that CVN can be any number and exp. date can be any date as long as it's in the future). You can see the error I'm getting in the attached screenshot, basically my card gets refused no matter what I enter.

I've noticed one thing that might be the cause of the issue and I've attached the second screenshot which might help. The message says: "message:The request data did not pass the required fields check for this application: [bill_address1, bill_city, bill_country, customer_email, customer_lastname]". 

Did anyone else have anything similar?

Any help is greatly appreciated!
Marko
error.jpg
form_data.jpg

Clinton Blackburn

unread,
Nov 15, 2016, 6:50:41 PM11/15/16
to General Open edX discussion
Marko,

Check your profile configuration at CyberSource, specifically the "Payment Form" settings. We currently require basic billing address info as a measure of fraud prevention. Our settings are reflected in the attached screenshot.

Clinton
Message has been deleted
Message has been deleted

msim...@extensionengine.com

unread,
Nov 16, 2016, 8:18:04 AM11/16/16
to General Open edX discussion

Thx a lot for your answer Clinton but I was able to solve that yesterday with the same solution u suggested and now I'm getting a different error: "message:The field is invalid: You are not set up to process Level III transactions.".
I saw that there's a flag that you can add to that should fix this so now my ecommerce.yml looks like this (cybersource conf):

cybersource:
            access_key: 06a38ed6ab0737c1b23326d7daddd4eb
            merchant_id: qwertasdf
            payment_page_url: https://testsecureacceptance.cybersource.com/pay
            profile_id: 0A7F7310-2F2A-48AD-A9D3-BE5DBEB191EB
            secret_key: d2b6025db4b64faf977118774e85027d4ef5f67c435c4143865d7944cb2ba5e5225a4e37b808444cb837e30f5dfa49f8c8e1ae76a467426c8828f71fdfc56f5e0a44bcb9e33945b498fc8939f5b065b1ae0f8306e8984f7380c68a7baad$
            transaction_key: TUXw4bdIre/Cbi2yCC73GxyhMXRSC74uFfV/SGgi2KxYimHjzonGm0zbVhf1P2OR9x3iI2QRQFlDH/ubK42KeAw3QwvFNUvttsCRALyc1C3kHS5ocHyiHQNPBWBvcavaXTvYS+f0HrFQD1RaKEIJ4FZNKpGxt5N+8FpcMoN3MqAhTkW7rjQIzY$
            send_level_2_3_details: true
            sop_profile_id: 0A7F7310-2F2A-48AD-A9D3-BE5DBEB191EB
            sop_access_key: 06a38ed6ab0737c1b23326d7daddd4eb
            sop_secret_key: d2b6025db4b64faf977118774e85027d4ef5f67c435c4143865d7944cb2ba5e5225a4e37b808444cb837e30f5dfa49f8c8e1ae76a467426c8828f71fdfc56f5e0a44bcb9e33945b498fc8939f5b065b1ae0f8306e8984f7380c68a7$
            sop_payment_page_url: https://testsecureacceptance.cybersource.com/silent/pay

I'm still recieveing the same error "message:The field is invalid: You are not set up to process Level III transactions.". I've tried setting the value to true and false with the same result 

Any idea?
Thx,
Marko

Clinton Blackburn

unread,
Nov 16, 2016, 8:36:17 AM11/16/16
to edx-...@googlegroups.com
Please refrain from posting any private account data. Although it seems you've obfuscated the merchant_id, I highly recommend updating your access key, security key, and transaction key.

As to your question, the issue is related to the send_level_2_3_details value. You have it set to True, but it seems Level II and Level III transactions are not enabled on your CyberSource account. Level II/III transactions include more info, and have the potential to lower your merchant rate (depending on your backend bank/card processor). You can get complete details at http://apps.cybersource.com/library/documentation/sbc/SB_API_Level3/SB_API_Level3.pdf.

You can resolve this immediately by setting send_level_2_3_details to False. If you'd like to explore configuring this for your organization, request that CyberSource enable this functionality on your account.

Clinton Blackburn

--
You received this message because you are subscribed to a topic in the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/43fed1c3-3b15-40b7-9523-e1cce0d61310%40googlegroups.com.

Message has been deleted

msim...@extensionengine.com

unread,
Nov 16, 2016, 12:05:08 PM11/16/16
to General Open edX discussion
Thanks for the advice, I'm going to do that (but it's a test dummy account on cyber source with dummy data). Anyways, I was able to solve the issue like you suggested (the problem was I've changed it on two places so one was overriding the other even when I would change to false).

I'm getting "error: unable to create a receipt" while Loading order data, and it seems that order isn't being created. I'm wondering if there's still some configuration needed for it to work since this is out of the box clean eucalpytus. I'm attaching a screenshot with the error and browser console, hope it helps you help me.

Thanks,
Marko
Capture.PNG

Clinton Blackburn

unread,
Nov 16, 2016, 12:13:10 PM11/16/16
to edx-...@googlegroups.com
The CyberSource profile needs to be updated with a merchant POST URL. This should be set to your /payment/cybersource/notify/ endpoint, which must be publicly accessible.

Clinton Blackburn

--
You received this message because you are subscribed to a topic in the Google Groups "General Open edX discussion" group.

Marko Šimundža

unread,
Nov 17, 2016, 9:52:18 AM11/17/16
to General Open edX discussion
I've put "http://cleaneucalyptus.edxinstances.org:18130/payment/cybersource/notify/" in the merchant POST URL but order still isn't being created (same error). When i navigate to the http://cleaneucalyptus.edxinstances.org:18130/payment/cybersource/notify/ I get 405 method not allowed. 

My ecommerce.yml has "receipt_path: /commerce/checkout/receipt/". Is that correct? Or maybe there's something else I'm not seeing.

Clinton Blackburn

unread,
Nov 17, 2016, 9:56:04 AM11/17/16
to edx-...@googlegroups.com
I don't think CyberSource allows POSTS to ports outside of 80 or 443. You will need to expose your instance on one of those ports. You might find ngrok helpful for this.

Clinton Blackburn

On Thu, Nov 17, 2016 at 9:13 AM, Marko Šimundža <markos...@gmail.com> wrote:
I've put "http://cleaneucalyptus.edxinstances.org:18130/payment/cybersource/notify/" in the merchant POST URL but order still isn't being created (same error). When i navigate to the http://cleaneucalyptus.edxinstances.org:18130/payment/cybersource/notify/ I get 405 method not allowed. 

My ecommerce.yml has "receipt_path: /commerce/checkout/receipt/". Is that correct? Or maybe there's something else I'm not seeing.

--
You received this message because you are subscribed to a topic in the Google Groups "General Open edX discussion" group.

msim...@extensionengine.com

unread,
Nov 18, 2016, 9:07:16 AM11/18/16
to General Open edX discussion
You are right, I've managed to solve the issue without ngrok (since it's not free if you want to reserve a domain). 
I've added these lines of code to the "/edx/app/nginx/sites-available/lms" file

  # bypass cybersource POST restriction on port 18130
  location /cybersource_proxy {
    proxy_pass http://127.0.0.1:18130/;
  }

Then I've changed my merchant POST URL to:
http://<LMS URL>/cybersource_proxy/payment/cybersource/notify/

Now the order is getting created and it all seems to work fine (for now :))
Hopefully this will help others that encounter similar issues.

Thank you very much Clinton for your help!

Regards,
Marko

Frane Kalebic

unread,
Apr 20, 2017, 6:11:36 AM4/20/17
to General Open edX discussion
Hi, is there anything I need to do regarding the POST URL on the edx/ecommerce side?

My ecommerce is not running on https://myurl.org:18130, but on https://ecommerce.myurl.org so the port should not be a problem.
But when trying to add  https://ecommerce.myurl.org/payment/cybersource/notify/ to cybersource we get a "Please enter a valid merchant POST URL" message.

I can access  https://ecommerce.myurl.org/payment/cybersource/notify/ in a browser but I get a blank page, is that supposed to happen?

Thanks,
Frane

Clinton Blackburn

unread,
Apr 20, 2017, 6:17:47 PM4/20/17
to General Open edX discussion
Frane,

Please create a new post for new questions rather than piggybacking on existing ones. Regarding your issue, you should contact CyberSource to determine why their system is not accepting your URL.

Clinton
Reply all
Reply to author
Forward
0 new messages