Glad to hear it is all working.
If you change the OrderMode to Test then you can use the test credit card numbers:
4111111111111111 (4 x 15-1's)
Expiration date: any future date
CV2: 123
If in Test mode the above card will return authorization response.
Let us know if we can be of more assistance.
Announcement
Collapse
No announcement yet.
FAAS post array values. Please help.
Collapse
X
-
I got it all worked out I think!! I am no longer receiving an error but instead it is a 'decline' is this normal for a test transaction?
http://dev.fortytonone.org/decline?o...&RefID=1234567
PHP Code:Array
(
[frm_action] => create
[form_id] => 7
[form_key] => 65atso
[item_meta] => Array
(
[90] => $100.00
[91] =>
[94] => Array
(
[0] => 999
)
[95] => Yearly
[107] => test dedication
[108] => kyle
[109] => Williams
[110] => 1544 laffayette
[142] => 208
[143] => 301
[111] => Denver
[112] => 80218
[103] => 308.470.1238
[114] => kyle@purplecrayons.com
[115] => By Email
[96] => Kyle
[98] => Williams
[99] => 1544 Lafayette
[137] => 30
[138] => 399
[141] => Denver
[113] => 80218
[104] => kyle@purplecrayons.com
[150] => Kyle R Williams
[151] => 4111 1111 1111 1111
[152] => 222
[153] => August
[154] => 2017
[117] => I understand that this charge will appear as
[118] => 24981
[119] => 1baa0dbd-433b-49ee-80ca-cf384b7fe0ac
[121] => 65100
[145] => test
[146] => CreditCard
[147] => Payment
[148] => US
[149] => true
[120] => 701E0000000RW4z
[144] => 5110
[122] => http://dev.fortytonone.org/success
[123] => http://dev.fortytonone.org/decline
[124] => http://dev.fortytonone.org/error
[248] => https://FaaS.Cloud.ClickandPledge.com
[578] => Cause
[579] => 1
)
[item_key] => nbo7qw
[AccountID] => 24981
[AccountGuid] => 1baa0dbd-433b-49ee-80ca-cf384b7fe0ac
[WID] => 65100
[OrderMode] => test
[PaymentType] => CreditCard
[TransactionType] => Payment
[DecimalMarkMode] => US
[SendReceipt] => true
[OnSuccessUrl] => http://dev.fortytonone.org/success
[OnDeclineUrl] => http://dev.fortytonone.org/decline
[OnErrorUrl] => http://dev.fortytonone.org/error
[ItemName1] => Cause
[Quantity1] => 1
[UnitDeductible1] => 100%
[SKU1] => 5110
[Campaign1] => 701E0000000RW4z
[RefID] => 1234567
[ItemID] => 1
[ItemID1] => 1
[UnitPrice1] => 100.00
[Other1] =>
[GEM] => 999
[Periodicity] => Yearly
[BillingFirstName] => Kyle
[BillingLastName] => Williams
[BillingAddress1] => 1544 Lafayette
[BillingCountryCode] => 30
[BillingStateProvince] => 399
[BillingCity] => Denver
[BillingPostalCode] => 80218
[BillingEmail] => kyle@purplecrayons.com
[NameOnCard] => Kyle R Williams
[CardNumber] => 4111111111111111
[Cvv2] => 222
[ExpirationMonth] => 08
[ExpirationYear] => 17
[name] => test dedication
[frm_skip_cookie] => 1
)
Originally posted by Support.Department View PostEureka!
[UnitPrice1] => $100.00
you are passing the $ symbol. It has to be a number- please see the manual:
http://manual.clickandpledge.com/For...ct_Information
[ATTACH=CONFIG]590[/ATTACH]
Leave a comment:
-
Excellent!! That took care of that error. Now I am getting a new error though
http://dev.fortytonone.org/error?on=...&RefID=1234567
I beleive this has to do with the format for the expiration date. Let me check that real quick...
Originally posted by Support.Department View PostEureka!
[UnitPrice1] => $100.00
you are passing the $ symbol. It has to be a number- please see the manual:
http://manual.clickandpledge.com/For...ct_Information
[ATTACH=CONFIG]590[/ATTACH]
Leave a comment:
-
Eureka!
[UnitPrice1] => $100.00
you are passing the $ symbol. It has to be a number- please see the manual:
http://manual.clickandpledge.com/For...ct_Information
Leave a comment:
-
Good day!
You are still getting basket empty. This means nothing is being posted for the item that is a valid name, quantity, or unit price.
I assure you that if you test your form to a secondary page, you will see one of those items is either missing or has an invalid value. We have seen, for example, that people post $100 instead of 100 for unit price or zero (0) for quantity.
Please review your post carefully. Can you create a page and post to it and see what values you are posting for the variables I listed above?
Leave a comment:
-
Thank you for your quick reply! I have tried to use the https://verify.faas.cloud.clickandpledge.com/ but it never shows any data that I have submitted. Its always just an empty table and I know this isn't correct because when I submit to https://faas.cloud.clickandpledge.com/ it is indeed pulling the refID and onErrorURL.
Anyway I updated the following vars by adding a 1 to the end of them and I am still getting the same error.
- ItemName1
- UnitPrice1
- Quantity1
Here is my error code and my $_POST variable
http://dev.fortytonone.org/error?err...&RefID=1234567
PHP Code:Array
(
[frm_action] => create
[form_id] => 7
[form_key] => 65atso
[item_meta] => Array
(
[90] => $100.00
[91] =>
[94] => Array
(
[0] => 999
)
[95] => Monthly
[107] => test dedication
[108] => kyle
[109] => Williams
[110] => 1544 laffayette
[142] => 208
[143] => 301
[111] => Denver
[112] => 80218
[103] => 308.470.1238
[114] => kyle@purplecrayons.com
[115] => By Email
[96] => Kyle
[98] => Williams
[99] => 1544 Lafayette
[137] => 208
[138] => 301
[141] => Denver
[113] => 80218
[104] => kyle@purplecrayons.com
[150] => Kyle R Williams
[151] => 41111111111111111
[152] => 222
[153] => July
[154] => 2013
[117] => I understand that this charge will appear as
[118] => 24981
[119] => 1baa0dbd-433b-49ee-80ca-cf384b7fe0ac
[121] => 65100
[145] => test
[146] => CreditCard
[147] => Payment
[148] => US
[149] => true
[120] => 701E0000000RW4z
[144] => 5110
[122] => http://dev.fortytonone.org/success
[123] => http://dev.fortytonone.org/decline
[124] => http://dev.fortytonone.org/error
[248] => https://FaaS.Cloud.ClickandPledge.com
[578] => Cause
[579] => 1
)
[item_key] => ixoku0
[AccountID] => 24981
[AccountGuid] => 1baa0dbd-433b-49ee-80ca-cf384b7fe0ac
[WID] => 65100
[OrderMode] => test
[PaymentType] => CreditCard
[TransactionType] => Payment
[DecimalMarkMode] => US
[SendReceipt] => true
[OnSuccessUrl] => http://dev.fortytonone.org/success
[OnDeclineUrl] => http://dev.fortytonone.org/decline
[OnErrorUrl] => http://dev.fortytonone.org/error
[ItemName1] => Cause
[Quantity1] => 1
[UnitDeductible1] => 100%
[SKU1] => 5110
[Campaign1] => 701E0000000RW4z
[RefID] => 1234567
[UnitPrice1] => $100.00
[Other1] =>
[GEM] => 999
[Periodicity] => Monthly
[BillingFirstName] => Kyle
[BillingLastName] => Williams
[BillingAddress1] => 1544 Lafayette
[BillingCountryCode] =>
[BillingStateProvince] =>
[BillingCity] => Denver
[BillingPostalCode] => 80218
[BillingEmail] => kyle@purplecrayons.com
[NameOnCard] => Kyle R Williams
[CardNumber] => 41111111111111111
[Cvv2] => 222
[ExpirationMonth] => January
[ExpirationYear] => 2013
[name] => test dedication
[frm_skip_cookie] => 1
)
Originally posted by Support.Department View PostGood day!
Basket is empty error means one of the following items are either missing or have a null value:
- ItemName1
- UnitPrice1
- Quantity1
You may want to post your results to https://verify.faas.ClickandPledge.com and check what is being posted.
Leave a comment:
-
Good day!
Basket is empty error means one of the following items are either missing or have a null value:
- ItemName1
- UnitPrice1
- Quantity1
You may want to post your results to https://verify.faas.ClickandPledge.com and check what is being posted.
Leave a comment:
-
So I've decided I can do it without Curl and submit directly to https://FaaS.Cloud.ClickandPledge.com by using javascript to change the form action. You can see my form at dev.fortytonone.org
I am using jquery to change the action to http://FaaS.Cloud.ClickandPledge.com as well as cloning the values from the fields on the page to hidden generated fields with the correct names that your system is looking for... This is necessary because the form plugin the client uses doesnt allow me to specify the form action or the form input names.
Now I know the jquery stuff described above might be confusing but that isn't really important to what error I'm getting. Here is what is returning from the donation submission
http://dev.fortytonone.org/error?err...&RefID=1234567
I think i am getting an empty basket error message? And here is the $_POST variable that is being passed to https://FaaS.Cloud.ClickandPledge.com. Notice that there are some fields that are nonsense to your system that were added by my form plugin but I believe at the bottom of the array I have all the neccessary fields. Can you help me figure out why I am getting the 'bucket' error?
PHP Code:Array
(
[frm_action] => create
[form_id] => 7
[form_key] => 65atso
[item_meta] => Array
(
[90] => $50.00
[91] =>
[94] => Array
(
[0] => 999
)
[95] => Monthly
[107] => test dedication
[108] => kyle
[109] => Williams
[110] => 1544 laffayette
[142] => 208
[143] => 301
[111] => Denver
[112] => 80218
[103] => 308.470.1238
[114] => kyle@purplecrayons.com
[115] => By Email
[96] => Kyle
[98] => Williams
[99] => 1544 Lafayette
[137] => 208
[138] => 301
[141] => Denver
[113] => 80218
[104] => kyle@purplecrayons.com
[150] => Kyle R Williams
[151] => 41111111111111111
[152] => 222
[153] => September
[154] => 2013
[117] => I understand that this charge will appear as
[118] => 24981
[119] => 1baa0dbd-433b-49ee-80ca-cf384b7fe0ac
[121] => 65100
[145] => test
[146] => CreditCard
[147] => Payment
[148] => US
[149] => true
[120] => 701E0000000RW4z
[144] => 5110
[122] => http://dev.fortytonone.org/success
[123] => http://dev.fortytonone.org/decline
[124] => http://dev.fortytonone.org/error
[248] => https://FaaS.Cloud.ClickandPledge.com
[578] => Cause
[579] => 1
)
[item_key] => o0ye1u
[AccountID] => 24981
[AccountGuid] => 1baa0dbd-433b-49ee-80ca-cf384b7fe0ac
[WID] => 65100
[OrderMode] => test
[PaymentType] => CreditCard
[TransactionType] => Payment
[DecimalMarkMode] => US
[SendReceipt] => true
[OnSuccessUrl] => http://dev.fortytonone.org/success
[OnDeclineUrl] => http://dev.fortytonone.org/decline
[OnErrorUrl] => http://dev.fortytonone.org/error
[ItemName] => Cause
[Quantity] => 1
[UnitDeductible] => 100%
[SKU] => 5110
[Campaign] => 701E0000000RW4z
[RefID] => 1234567
[UnitPrice] => $50.00
[Other] =>
[GEM] => 999
[Periodicity] => Monthly
[BillingFirstName] => Kyle
[BillingLastName] => Williams
[BillingAddress1] => 1544 Lafayette
[BillingCountryCode] =>
[BillingStateProvince] =>
[BillingCity] => Denver
[BillingPostalCode] => 80218
[BillingEmail] => kyle@purplecrayons.com
[NameOnCard] => Kyle R Williams
[CardNumber] => 41111111111111111
[Cvv2] => 222
[ExpirationMonth] => January
[ExpirationYear] => 2013
[name] => test dedication
[frm_skip_cookie] => 1
)
Originally posted by Support.Department View PostGood day!
ItemName1 is totally up to you and the name is not at all related to anything in the portal.
You may want to read the KB articles: http://forums.clickandpledge.com/articles/api/faas
The only customization that may be used from the portal with FaaS forms is the WID of a page so the following attributes can be set remotely:- Fraud: You may disable fraud in a checkout page so the form does not monitor fraud attempts. This is typically done for private forms and should never be used for public forms.
- Receipt info: Organization information, Receipt Header, and Terms & Conditions- these may be set up for a page and they will be used for the receipt issued for the FaaS form. We recommend using a simple easy page for this purpose, e.g. Classic Page.
Leave a comment:
-
Good day!
ItemName1 is totally up to you and the name is not at all related to anything in the portal.
You may want to read the KB articles: http://forums.clickandpledge.com/articles/api/faas
The only customization that may be used from the portal with FaaS forms is the WID of a page so the following attributes can be set remotely:- Fraud: You may disable fraud in a checkout page so the form does not monitor fraud attempts. This is typically done for private forms and should never be used for public forms.
- Receipt info: Organization information, Receipt Header, and Terms & Conditions- these may be set up for a page and they will be used for the receipt issued for the FaaS form. We recommend using a simple easy page for this purpose, e.g. Classic Page.
Leave a comment:
-
Thank you for your reply!
I'd be very interested in knowing what your php developer's research on curl turns over.
Also thank you for letting me know about the https. I didn't see this in the documentation so it will save me a bunch of head ache down the road.
I have a question about the ItemName1 var. Do I have to setup a product or something in the click and pledge admin and use the name I used there for the ItemName1 var? I guess the admin confuses me a bit and I'm not used to thinking of a donation as an Item with a name.
Originally posted by Support.Department View PostGood day!
The post to https://Verify.FaaS.Cloud.ClickandPledge.com is designed to show you what you have posted to it. It is the not the processing URL. The processing URL is https://FaaS.Cloud.ClickandPledge.com.
I also don't see ItemName1/Quantity1 in your list of variables and if the donation has any portion of it as tax deductible then you also need the tax deductible variable. The following are the list of variables that may be used:
http://manual.clickandpledge.com/For...ct_Information
<input name="ItemName1" type="hidden" id="ItemName1" value="Cause 1" />
<input name="Quantity1" type="hidden" id="Quantity1" value="1" />
<input name="UnitPrice1" type="text" id="UnitPrice1" value="5" size="10" />
<input name="UnitDeductible1" type="hidden" id="UnitDeductible1" value="100%" />
<input name="ItemID1" type="hidden" id="ItemID1" value="1" />
<input name="SKU1" type="hidden" id="SKU1" value="ABC-1234" />
<input name="Campaign1" type="hidden" id="Campaign1" value="Building Fund" />
The items marked in red are mandatory.
Please note that the page, once in Production mode, has to originate from a secure page, meaning your form has to be on a secure site before the FaaS processor accepts the call.
As for using CURL we are researching to find out how that may be used with our FaaS. One of our PHP developers is researching it since our initial tests indicate the FaaS form does not return a response when a form posts to it using CURL.
Leave a comment:
-
Good day!
The post to https://Verify.FaaS.Cloud.ClickandPledge.com is designed to show you what you have posted to it. It is the not the processing URL. The processing URL is https://FaaS.Cloud.ClickandPledge.com.
I also don't see ItemName1/Quantity1 in your list of variables and if the donation has any portion of it as tax deductible then you also need the tax deductible variable. The following are the list of variables that may be used:
http://manual.clickandpledge.com/For...ct_Information
<input name="ItemName1" type="hidden" id="ItemName1" value="Cause 1" />
<input name="Quantity1" type="hidden" id="Quantity1" value="1" />
<input name="UnitPrice1" type="text" id="UnitPrice1" value="5" size="10" />
<input name="UnitDeductible1" type="hidden" id="UnitDeductible1" value="100%" />
<input name="ItemID1" type="hidden" id="ItemID1" value="1" />
<input name="SKU1" type="hidden" id="SKU1" value="ABC-1234" />
<input name="Campaign1" type="hidden" id="Campaign1" value="Building Fund" />
The items marked in red are mandatory.
Please note that the page, once in Production mode, has to originate from a secure page, meaning your form has to be on a secure site before the FaaS processor accepts the call.
As for using CURL we are researching to find out how that may be used with our FaaS. One of our PHP developers is researching it since our initial tests indicate the FaaS form does not return a response when a form posts to it using CURL.
Leave a comment:
-
I'm probably doing this wrong but that is my $_POST array that i am sending to https://verify.faas.cloud.clickandpledge.com url. I am doing the posting using php and curl here is my code.
PHP Code:$arg = array(
'UnitPrice1' => $UnitPrice1,
'SKU1' => $SKU1,
'Installment' => $Installment,
'Periodicity' => $Periodicity,
'BillingFirstName' => $BillingFirstName,
'BillingLastName' => $BillingLastName,
'BillingEmail' => $BillingEmail,
'BillingPhone' => $BillingPhone,
'BillingAddress1' => $BillingAddress1,
'BillingCity' => $BillingCity,
'BillingStateProvince' => $BillingStateProvince,
'BillingPostalCode' => $BillingPostalCode,
'BillingCountryCode' => $BillingCountryCode,
'NameOnCard' => $NameOnCard,
'CardNumber' => $CardNumber,
'Cvv2' => $Cvv2,
'ExpirationMonth' => $ExpirationMonth,
'ExpirationYear' => $ExpirationYear,
'OnSuccessUrl' => $OnSuccessUrl,
'OnDeclineUrl' => $OnDeclineUrl,
'OnErrorUrl' => $OnErrorUrl,
'AccountGuid' => $AccountGuid,
'AccountID' => $AccountID,
'SendReceipt' => $SendReceipt,
'WID' => $WID,
'OrderMode' => $OrderMode,
'PaymentType' => $PaymentType,
'TransactionType' => $TransactionType,
'DecimalMarkMode' => $DecimalMarkMode,
'Campaign' => $Campaign
);
$url = 'https://verify.faas.cloud.clickandpledge.com';
$ch = curl_init( $url );
curl_setopt( $ch, CURLOPT_POST, 1);
curl_setopt( $ch, CURLOPT_POSTFIELDS, $arg);
curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt( $ch, CURLOPT_HEADER, 0);
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec( $ch );
1) Does my list of fields look complete? Or am I missing any required fields.
2) is posting a form using curl like this acceptable?
btw I'm posting through curl like this because I have a couple APIs the form is talking to and they each have there own unique code.Last edited by purplecrayons; 03-20-2013, 04:47 PM.
Leave a comment:
-
Good day!
I am not sure what you are trying to do. Our system does not handle the information through an array.
Have you seen any of our examples? We simply ask that you post the form fields to us on a one-by-one basis.
http://clickandpledge.com/Platforms/...ment/API/FaaS/
Please review the examples and let me know if I can answer any questions you may have.
Leave a comment:
-
FAAS post array values. Please help.
This is my post array sending to the FAAS system. I am just checking to make sure I have all the fields that are required
Array ( [UnitPrice1] => $5,000.00 [SKU1] => 5110 [Installment] => 999 [Periodicity] => Monthly [BillingFirstName] => Kyle [BillingLastName] => Williams [BillingEmail] => [email protected] [BillingPhone] => 308.470.1238 [BillingAddress1] => 1544 Lafayette [BillingCity] => Kearney [BillingStateProvince] => NE [BillingPostalCode] => 68139 [BillingCountryCode] => 840 [NameOnCard] => Kyle R Williams [CardNumber] => 4111111111111111 [Cvv2] => 222 [ExpirationMonth] => January [ExpirationYear] => 2013 [OnSuccessUrl] => http://dev.****.org/success [OnDeclineUrl] => http://dev.****.org/decline [OnErrorUrl] => http://dev.***.org/error [AccountGuid] => *** [AccountID] => *** [SendReceipt] => true [WID] => *** [OrderMode] => test [PaymentType] => CreditCard [TransactionType] => Payment [DecimalMarkMode] => US [Campaign] => 701E0000000RW4z )Tags: None
Leave a comment: