Data Object: Payment Method

Get Payment Method


{{ data.payment.get(:id) }}

Parameter Type Description
id required int Payment Method Identifier

HHTP/1.1 200 OK
{
     id: 5,
     name: "Arca",
     sellerId: 10,
     sellerKey: "fdds45454",
     sellerUsername: "1215545151",
     sellerPassword: "password",
     paymentGatewayId: 1,
     paymentGatewayName: "Acba Bank",
     icon: "http://cdn.storech.com/uploads/payment-method-icons/card.png"
}

or

false

Parameter Type Description
id int Payment method identifier
name string Payment method name
sellerId int Seller identifier from contract
sellerKey string Seller key from contract
sellerUsername string Seller username from contract
sellerPassword string Seller password from contract
paymentGatewayId int Payment gateway identifier
paymentGatewayName string Payment gateway provider name
icon string Payment method photo


Get Payment Methods List


{{ data.payment.list({}) }}

HTTP/1.1 200 OK
{
    {
          id: 5,
          name: "Arca",
          sellerId: 10,
          sellerKey: "fdds45454",
          sellerUsername: "1215545151",
          sellerPassword: "password",
          paymentGatewayId: 1,
          paymentGatewayName: "Acba Bank",
          icon: "http://cdn.storech.com/uploads/payment-method-icons/card.png"
     }
     ...
}

or

[]

Parameter Type Description
id int Payment method identifier
name string Payment method name
sellerId int Seller identifier from contract
sellerKey string Seller key from contract
sellerUsername string Seller username from contract
sellerPassword string Seller password from contract
paymentGatewayId int Payment gateway identifier
paymentGatewayName string Payment gateway provider name
icon string Payment method photo