Re: Not able to call REST API (/pts/v2/payments) from SOAP UI

kvijay6aa
Regular Visitor

Not able to call REST API (/pts/v2/payments) from SOAP UI

Hi All , 

 

I am not able to invoke the REST API from SOAP UI ? has anyone able to successfully invoke it from SOAP UI

REST API - https://apitest.cybersource.com/pts/v2/payments

Error 

{
"submitTimeUtc": "2020-08-26T07:36:37.039Z",
"status": "DECLINED",
"errorInformation": {
"reason": "INVALID_DATA",
"message": "Invalid Json Request"
}
}

 

 

let me know if anyone has tested it before . 

 

 

Vijay

 

 

3 REPLIES 3
API_Products
Visa Developer Support Specialist

Re: Not able to call REST API (/pts/v2/payments) from SOAP UI

Hey @kvijay6aa,

 

I'm happy to help you with the CyberSource issue you're experiencing. At this time, you can only query the CyberSource Payments sandbox by creating a merchant account directly with CyberSource:
 
https://developer.cybersource.com 

 

Here's an easy to use method to test their account credentials:
 
https://developer.cybersource.com/api/reference/api-reference.html 
 
Links to sample code:  https://github.com/CyberSource/cybersource-rest-samples-java/blob/master/src/main/java/samples/payme... 

 

Please let us know if there's anything else we can help with.

 




Thanks,

Diana



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

kvijay6aa
Regular Visitor

Re: Not able to call REST API (/pts/v2/payments) from SOAP UI

Hi Diana , 

 

Thanks for your reply . Do you mean to say I can not test any API as of now  and I can ONLY query  ?

I have gone through the API developer guide and tried to call a REST API using SOAP UI , but always getting Authentication error. 

When I tried to test the same using Cybersource website , i am able to see the authentication success. 

 

I think issue is in generating the Signature hash . There is step provided in below URL to decode the Secret Key however , when i try to decode it , the values doesn't seems to be correct ( I am trying to decode Base64 online )

URL and Sep below

https://developer.cybersource.com/api/developer-guides/dita-payments/GenerateHeader/httpSignatureAut...

 3.  Create a byte array of your decoded Secret Key (which you generated in the CyberSource Business Center).

 

 

By the way I have created account with cybersource .. Any help would be appreciated

 

Vijay

API_Products
Visa Developer Support Specialist

Re: Not able to call REST API (/pts/v2/payments) from SOAP UI

Hey @kvijay6aa,

 

Nice to hear from you and I'm happy to help. Please reach out to the CyberSource team using the phone number below. They'll be happy to help. 

 

CyberSource Support - 800-709-7779 

 

 




Thanks,

Diana



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.