Coder Social home page Coder Social logo

Comments (1)

ruckus avatar ruckus commented on July 24, 2024

Thanks for the heads up, I just implemented Payment support in 0.1.9 for QB Windows.

Use it like so:

service = Quickeebooks::Windows::Service::Payment.new
service.access_token = token
service.realm_id = realm_id

model = Quickeebooks::Windows::Model::Payment.new
model.header = Quickeebooks::Windows::Model::PaymentHeader.new

# Required: Customer ID
model.header.customer_id = Quickeebooks::Windows::Model::Id.new(4120)

# Payment method can be left blank. If supplied then it must
# be a valid payment method in your account.
# Get a list of valid payment methods for your account by calling
# Quickeebooks::Windows::Service::PaymentMethod#list
model.header.payment_method_id = Quickeebooks::Windows::Model::Id.new(8) # Gift Card

model.header.doc_number = "99999" # your app-specific Invoice number
model.header.txn_date = Date.civil(2013, 5, 3)
model.header.total_amount = 88 # this amount should be the sum of all the line items amount

line_item = Quickeebooks::Windows::Model::PaymentLineItem.new
line_item.desc = "Dog grooming"
line_item.amount = 88

model.line_items << line_item

service.create(model)

from quickeebooks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.