/// <summary>
 /// Create a new instance of the Service Refund sample class
 /// </summary>
 public OffAmazonPaymentsServiceRefund()
 {
     // Instantiate the Merchant propertiesCollection object which contains required parameters for creating a Marketplace Payment Service
     this._propertiesCollection = OffAmazonPaymentsServicePropertyCollection.getInstance();
     this._service = new OffAmazonPaymentsServiceClient(this._propertiesCollection);
     this._rng     = new Random();
 }
Exemple #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            OffAmazonPaymentsServicePropertyCollection props = OffAmazonPaymentsServicePropertyCollection.getInstance();

            this.javascriptInclude = props.WidgetUrl;
            this.merchantId        = props.MerchantID;
            this.clientId          = props.ClientId;
        }
Exemple #3
0
        public OffAmazonPaymentsServiceCancellation()
        {
            /************************************************************************
             * Instantiate the Merchant propertiesCollection object which contains required parameters for creating a Marketplace Payment Service
             ***********************************************************************/
            propertiesCollection = OffAmazonPaymentsServicePropertyCollection.getInstance();

            /************************************************************************
             * Instantiate  Implementation of Marketplace Payment Service
             ***********************************************************************/
            service = new OffAmazonPaymentsServiceClient(propertiesCollection);
        }
        public OffAmazonPaymentsServiceSimpleCheckout(String oroId)
        {
            /************************************************************************
             * Instantiate the Merchant propertiesCollection object which contains required parameters for creating a Marketplace Payment Service
             ***********************************************************************/
            propertiesCollection = OffAmazonPaymentsServicePropertyCollection.getInstance();

            /************************************************************************
             * Instantiate  Implementation of Marketplace Payment Service
             ***********************************************************************/
            service = new OffAmazonPaymentsServiceClient(propertiesCollection);
            this.orderReferenceId = oroId;
        }
 public OffAmazonPaymentsServiceAutomaticPaymentsSimpleCheckout(string billingAgreementId)
 {
     propertiesCollection = OffAmazonPaymentsServicePropertyCollection.getInstance();
     service = new OffAmazonPaymentsServiceClient(propertiesCollection);
     this.billingAgreementId = billingAgreementId;
 }