Open paintsis opened 5 years ago
Hi. Can you please provide steps to reproduce? when importing libraries and declared the configObject and instance variable, I am using angular 7
import {cybersourceRestApi} from 'cybersource-rest-client';
let configObject = Configuracion();
let instance = new cybersourceRestApi.PaymentsApi(configObject);
Can you also check the version of the SDK? cybersource-rest-client@0.0.10 cybersource-rest-auth@0.0.3
Also, can you tell us where you are running the SDK from? (If this is run from custom code, let us know. We may need to go through that offline.)
I am running it from an angular component of typescript
We understand you are trying to use the SDK inside your Angular app, but Angular runs on client side and these SDKs are not designed to be used on client side, these are server side SDKs and you will need to have your own backend. You need your own server side component which will be communication to CyberSource, and you can use these SDKs to build this backend.
Testing module in Angular7.
Module not found: Error: Can't resolve 'model/VoidCaptureRequest' in '/home/sgonzalez/Documents/angular/aguas/node_modules/cybersource-rest-client/src' ERROR in ./node_modules/cybersource-rest-client/src/index.js Module not found: Error: Can't resolve 'model/VoidCreditRequest' in '/home/sgonzalez/Documents/angular/aguas/node_modules/cybersource-rest-client/src' ERROR in ./node_modules/cybersource-rest-client/src/index.js Module not found: Error: Can't resolve 'model/VoidPaymentRequest' in '/home/sgonzalez/Documents/angular/aguas/node_modules/cybersource-rest-client/src' ERROR in ./node_modules/cybersource-rest-client/src/index.js Module not found: Error: Can't resolve 'model/VoidRefundRequest' in '/home/sgonzalez/Documents/angular/aguas/node_modules/cybersource-rest-client/src'