Skip to main content
Question

Create a Ebiz Customer Payment Method

  • June 26, 2025
  • 0 replies
  • 26 views

I am trying to create Customer Payment Method  - Error Payment Profile Id missing 

 

    var custPayMethodGraph = PXGraph.CreateInstance<CustomerPaymentMethodMaint>();

    PX.Objects.AR.CustomerPaymentMethod newMethod = new PX.Objects.AR.CustomerPaymentMethod
    {
        BAccountID = CustomerID,
        PaymentMethodID = "EBIZSB",
        Descr = "Imported EbizCharge Card",
        CashAccountID = 4, 
        IsActive = true,
        CCProcessingCenterID = "EBIZSB",
        CustomerCCPID = “123456”,
 

    };

    newMethod = custPayMethodGraph.CustomerPaymentMethod.Insert(newMethod);

    PX.Objects.AR.CustomerPaymentMethodDetail detail = new PX.Objects.AR.CustomerPaymentMethodDetail
    {
        PaymentMethodID = "EBIZSB",
        DetailID = "CCPID", 
        Value = “1234”
        
    };

    custPayMethodGraph.Details.Insert(detail);

    custPayMethodGraph.Actions.PressSave();