0.6.7 • Published 3 months ago

ccbill-restful-api v0.6.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

Unofficial API for the CCBILL RESTful API

IMPORTANT NOTICE

  • This package is in Beta, IF YOU HAVE ANY ISSUES, PLEASE REPORT IN GITHUB!
  • I receive no funding to create this, please contribute!

Usage

const ccbill = await ccbillGateway
	.create(
		FRONTEND_USERNAME, 
		FRONTEND_PASSWORD, 
		BACKEND_USERNAME, 
		BACKEND_PASSWORD, 
		CLIENT_ACCOUNT_NUMBER, 
		CLIENT_SUBACCOUNT_NUMBER
	);

const paymentTokenId = await ccbill.createPaymentToken(
  {
    customerFname: "Vin",
    customerLname: "Stu",
    address1: "3402 E University Dr",
    city: "Phoenix",
    zipcode: "85034",
    country: "US",
    email: "fk@gmail.com",
    ipAddress: "10.70.60.14",
    // state: "AZ",
  },
  {
    cardNum: "3530111333300000",
    nameOnCard: "Vin Stu",
    expMonth: "08",
    expYear: "2026",
    cvv2: "822",
  }
);

await ccbill.createAndChargePayment(paymentTokenId.paymentTokenId as string, {
  initialPeriod: 3,
  initialPrice: 0,
  recurringPeriod: 30,
  recurringPrice: 9.99,
  rebills: 99,
  createNewPaymentToken: false,
  lifeTimeSubscription: false,
  passThroughInfo: [],
});

TODOs:

  • Add support for Production Environment
  • Improve Error Handling
  • Add exmaples with new PaymentType Classes
0.1.0

3 months ago

0.6.7

3 months ago

0.6.6

3 months ago

0.5.3

3 months ago

0.6.5

3 months ago

0.6.4

3 months ago

0.5.2

3 months ago

0.5.1

3 months ago

0.5.0

3 months ago

1.0.0

3 months ago