Hello Sir...
To process a hold transaction whether i need to re-enter the full cart detail once again or their is any shortcut available to process a hold transaction using only order number and vaultGUID...?
Announcement
Collapse
No announcement yet.
Is there any API in 'Click&Pledge' for processing the transaction later using code
Collapse
X
-
how do i get to know that the transaction is set to put on hold from the response data..?
which is the OrderNumber in the response data that can be used later for hold transaction to be process.
Leave a comment:
-
Good day!
Your understanding of the terminology is correct. The "Authorize" feature is not supported by some of our gateways and as such "Payment" is what you need to pass with all of our gateways.
All transactions are settled and should be set to "Payment"
I hope that answers your question.
Leave a comment:
-
Hello Sir,
how much i understand about the api i got to know that when TransactionType value is Authorize then the transaction is on hold and when TransactionType value is Payment then the transaction is immediate.. am i right....???? and how do i get know that the transaction is set to put on hold from the response data..? which is the OrderNumber in the response data that can be used later for transaction..
Leave a comment:
-
Hi,
Thanks for reply.
I have checked schema from this link: 'http://manual.clickandpledge.com/Payment-as-a-Service.html' and also checked XML replied by you. My question is how can I use this xml or schema to recurring a transaction on a particular date with 'OrderNumber'. What is the use of following section in xml sent by you:
<Application>
<ID>Salesforce:CnP_PaaS</ID>
<Name>Salesforce:CnP_PaaS</Name>
<Version>9.2008</Version>
</Application>
I am not using Salesforce, I want to integrate 'Click&Pledge' payment gateway for processing the transaction later using code in my php website.
Can you please provide an example for how to send this xml or schema to 'Click&Pledge' in any language like- Java, C#, PHP, etc.
Leave a comment:
-
Good day @ajay,
sorry for the delay. I had to have the following XML created for your reply:
You may also download the schema from here: http://manual.clickandpledge.com/Pay...a-Service.html
In the code below check this section:
Code:<PaymentMethod> <PaymentType>ReferenceTransaction</PaymentType> <ReferenceTransaction> <OrderNumber>1511171150319321111</OrderNumber> <VaultGUID>b2a9167d-27b8-4f6c-ab81-b0814ed62271</VaultGUID> </ReferenceTransaction> </PaymentMethod>
Code:<?xml version="1.0" encoding="utf-8"?> <CnPAPI xmlns="urn:APISchema.xsd"> <Version>12</Version> <Engine> <Application> <ID>Salesforce:CnP_PaaS</ID> <Name>Salesforce:CnP_PaaS</Name> <Version>9.2008</Version> </Application> <Request> <Operation> <OperationType>Transaction</OperationType> <IPAddress>000.000.000.000</IPAddress> <DeclineFraud>false</DeclineFraud> <EnableRestriction>false</EnableRestriction> <UrlReferrer></UrlReferrer> </Operation> <Authentication> <AccountGuid>xxxxxxxxxxxxxxxxxxxxxxx</AccountGuid> <AccountID>00000</AccountID> </Authentication> <Order> <OrderMode>Production</OrderMode> <Tracker><![CDATA[tracker goes here]]></Tracker> <Campaign><![CDATA[]]></Campaign> <CardHolder> <BillingInformation> <BillingFirstName><![CDATA[Homer]]></BillingFirstName> <BillingMI></BillingMI> <BillingLastName><![CDATA[Simpson]]></BillingLastName> </BillingInformation> <BillingAddress> <BillingAddress2><![CDATA[]]></BillingAddress2> <BillingAddress3><![CDATA[]]></BillingAddress3> <BillingStateProvince><![CDATA[colorado]]></BillingStateProvince> <BillingCountryCode>840</BillingCountryCode> </BillingAddress> <CustomFieldList> <CustomField> <FieldName><![CDATA[Picklist Question?]]></FieldName> <FieldValue><![CDATA[No Comments]]></FieldValue> </CustomField> <CustomField> <FieldName><![CDATA[Text Area Question?]]></FieldName> <FieldValue><![CDATA[default answer]]></FieldValue> </CustomField> <CustomField> <FieldName><![CDATA[Is Payment done at PaaS VT]]></FieldName> <FieldValue><![CDATA[Yes]]></FieldValue> </CustomField> </CustomFieldList> <PaymentMethod> <PaymentType>ReferenceTransaction</PaymentType> <ReferenceTransaction> <OrderNumber>1511171150319321111</OrderNumber> <VaultGUID>b2a9167d-27b8-4f6c-ab81-b0814ed62271</VaultGUID> </ReferenceTransaction> </PaymentMethod> <CustomParameters> <Parameter> <Field><![CDATA[SalesforceContactID]]></Field> <Value><![CDATA[003i0000039yJvF]]></Value> </Parameter> </CustomParameters> </CardHolder> <ThirdParty></ThirdParty> <OrderItemList> <OrderItem> <ItemID>1000</ItemID> <ItemName><![CDATA[Item1]]></ItemName> <Quantity>1</Quantity> <UnitPrice>1000</UnitPrice> <UnitDeductible>500</UnitDeductible> <UnitTax>600</UnitTax> <UnitDiscount>400</UnitDiscount> <SKU>Item1 SKU</SKU> <CouponCode></CouponCode> <Campaign><![CDATA[]]></Campaign> </OrderItem> <OrderItem> <ItemID>1001</ItemID> <ItemName><![CDATA[Item2]]></ItemName> <Quantity>1</Quantity> <UnitPrice>2000</UnitPrice> <UnitDeductible>0</UnitDeductible> <UnitTax>800</UnitTax> <UnitDiscount>600</UnitDiscount> <SKU>Item2 SKU</SKU> <CouponCode></CouponCode> <Campaign><![CDATA[]]></Campaign> </OrderItem> <OrderItem> <ItemID>1002</ItemID> <ItemName><![CDATA[Item3]]></ItemName> <Quantity>1</Quantity> <UnitPrice>3000</UnitPrice> <UnitDeductible>0</UnitDeductible> <UnitTax>1000</UnitTax> <UnitDiscount>800</UnitDiscount> <SKU>Item3 SKU</SKU> <CouponCode></CouponCode> <Campaign><![CDATA[]]></Campaign> </OrderItem> <OrderItem> <ItemID>1003</ItemID> <ItemName><![CDATA[Item4]]></ItemName> <Quantity>1</Quantity> <UnitPrice>4000</UnitPrice> <UnitDeductible>0</UnitDeductible> <UnitTax>1200</UnitTax> <UnitDiscount>1200</UnitDiscount> <SKU>Item4 SKU</SKU> <CouponCode></CouponCode> <Campaign><![CDATA[]]></Campaign> </OrderItem> </OrderItemList> <Receipt> <SendReceipt>false</SendReceipt> <Language>ENG</Language> <OrganizationInformation><![CDATA[Optional: Receipt Header Receipt Header]]></OrganizationInformation> <ThankYouMessage><![CDATA[]]></ThankYouMessage> <TermsCondition><![CDATA[Optional Terms & Condition]]></TermsCondition> <Deductible>false</Deductible> <EmailNotificationList> <NotificationEmail>[email protected]</NotificationEmail> <NotificationEmail>[email protected]</NotificationEmail> </EmailNotificationList> </Receipt> <Transaction> <TransactionType>Payment</TransactionType> <DynamicDescriptor></DynamicDescriptor> <CurrentTotals> <TotalDiscount>3000</TotalDiscount> <TotalTax>3600</TotalTax> <TotalShipping>0</TotalShipping> <TotalDeductible>500</TotalDeductible> <Total>10600</Total> </CurrentTotals> <CouponCode></CouponCode> <TransactionDiscount>0</TransactionDiscount> <TransactionTax>0</TransactionTax> <TransactionConvenienceFee>0</TransactionConvenienceFee> <ChargeDate>15/11/18</ChargeDate> </Transaction> </Order> </Request> </Engine> </CnPAPI>
Leave a comment:
-
Hi,
Thanks for reply.
I have checked this link(http://manual.clickandpledge.com/PaymentMethod.html) and found a topic 'ReferenceTransaction' which has two types:
- OrderNumber
- VaultGUID
This link provide Schema(xml) for both types. Can you please explain what is 'Path: CnPAPI.Engine.Request.Order.CardHolder.PaymentMeth od. ReferenceTransaction.' provided under 'OrderNumber' section and how can I use this in my code?
I have also checked 'PHP Processor' topic at link "http://manual.clickandpledge.com/PHP-Processor.html", this link provides download links for:
- PHP Processor
- Examples
I have tested downloaded code for 'PHP_Processor_Examples/with_purchase_order.php', when I run this code it returns 'Transaction Number'. How can I use this 'Transaction Number' for processing this transaction in future using code. Can you please provide an example for this in any language like- Java, C#, PHP, etc.
Leave a comment:
-
Good day @AJay,
The method you are looking for is available in the full scale API platform: http://manual.clickandpledge.com/PaymentMethod.html
The FaaS forms do not support reference transaction as the FaaS platform is set for easy processing of HTML forms. All C&P functionality is available in the main API as we use the same backend for all that we do. If we have a feature available in any of our products it is available in the main API.
Hope that answers your question.
Leave a comment:
-
Is there any API in 'Click&Pledge' for processing the transaction later using code
Is there any API in 'Click&Pledge' payment gateway for processing the transaction later using code. Can we hold a transaction and process them later on using code. There is any similar feature like authorize.net for holding a payment and process them later by code. As authorize.net provide api for CaptureTransaction. We send transaction data using api to authorize.net and authorize.net return gateway_transaction_id that we use to process a CaptureTransaction later using code. Also there is any api for refund a payment and recurring a transaction on a particular date.Tags: None
Leave a comment: