-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can we add Payment Item field in document? #227
Comments
I understand you're looking to add a payment field within your document. With using PHP, we do have an article that does frame the steps in obtaining this field. This guide provides a comprehensive overview of utilizing DocuSign Payments to facilitate payment collection through envelopes. It outlines the steps required to configure a payment gateway for processing payments from signers. Additionally, it details the procedure for collecting online credit card payments via an order form sent within an envelope. For testing purposes, you may use one of the test credit cards supplied by Stripe. The article below shares code samples of how you can create the field. This is the code sample: Order form constants$l1_name = "Harmonica"; read the html file from a local directoryThe read could raise an exception if the file is not available!$doc1_file = 'order_form.html'; Substitute values into the HTMLSubstitute for: {signerName}, {signerEmail}, {cc_name}, {cc_email}$doc1_html_v2 = str_replace( create the envelope definition$envelope_definition = new EnvelopeDefinition([ add the document$doc1_b64 = base64_encode($doc1_html_v2); create a signer recipient to sign the document$signer1 = new Signer([ create a cc recipient to receive a copy of the documents$cc1 = new CarbonCopy([ Create signHere fields (also known as tabs) on the documents,We're using anchor (autoPlace) positioning$sign_here1 = new SignHere([ $list1 = new ModelList([ $list2 = new ModelList([ create two formula tabs for the extended price on the line items$formulal1e = new FormulaTab([ Formula for the total$formulal3t = new FormulaTab([ Payment line items$payment_line_iteml1 = new PaymentLineItem([ Hidden formula for the payment itself$formula_payment = new FormulaTab([ Tabs are set per recipient / signer$signer1_tabs = new Tabs([ Add the recipients to the envelope object$recipients = new Recipients([ return $envelope_definition; Best, |
Hello,
How can we add a Payment Item Field in the document?
in the above Image, they provide payment item fields.
using below code
` $this->authenticate();
$signer = new Signer([
'email' => $recipientEmail,
'name' => $recipientName,
'recipient_id' => '1',
'tabs' => $tabs,
'client_user_id' => $token
]);
`
I put the signed and name field in a document.
now How can we add a Payment Item Field in the document like a text field and signed field?
I want only to save the credit card details of the signer. stripe Payment method
The text was updated successfully, but these errors were encountered: