API response has data not found in user profile.

Ben Serrette's Avatar

Ben Serrette

25 Apr, 2014 08:57 PM

I'm using PHP to get a customer's information. The response shows some information that should not be stored anywhere. If I look at the customer profile in the dashboard, that information is no where to be found. For example, in the below example, the ccAddress contains some data, but the billing information section in the dashboard is empty. Am I missing something? Any ideas would be helpful.

[id] => 66ab64fd-cc8f-11e3-82b4-005056a548e6 [code] => 6B42272D-BC0B-6FBD-AD07-54BE01CCAE52 [firstName] => Hillary [lastName] => Cage [company] => [email] => [email blocked] [notes] => [gatewayToken] => [isVatExempt] => 0 [vatNumber] => [firstContactDatetime] => [referer] => [refererHost] => [campaignSource] => [campaignMedium] => [campaignTerm] => [campaignContent] => [campaignName] => [key] => fcc0e9ea28 [createdDatetime] => 2014-04-25T15:36:42+00:00 [modifiedDatetime] => 2014-04-25T15:36:42+00:00 [metaData] => [subscriptions] => Array ( [66ac46ac-cc8f-11e3-82b4-005056a548e6] => Array ( [id] => 66ac46ac-cc8f-11e3-82b4-005056a548e6 [plans] => Array ( [SALESFORCE2] => Array ( [id] => fb763386-5133-11e3-a374-bc764e04674e [code] => SALESFORCE2 [name] => Salesforce 2 [displayName] => Salesforce 2 • 16.00 / Month [description] => [isActive] => 1 [isFree] => 0 [paymentMethodIsRequired] => 0 [trialDays] => 0 [initialBillCount] => 1 [initialBillCountUnit] => months [initialInvoiceBillingDatetime] => 2014-05-25T11:56:21-04:00 [billingFrequency] => monthly [billingFrequencyPer] => month [billingFrequencyUnit] => months [billingFrequencyQuantity] => 1 [nextInvoiceBillingDatetime] => 2014-06-25T11:56:21-04:00 [setupChargeCode] => [setupChargeAmount] => 0.00 [recurringChargeCode] => SALESFORCE_2_RECURRING [recurringChargeAmount] => 16.00 [onChangeInitialBillHandler] => next [setupChargeBillHandler] => now [onChangeSetupChargeBillHandler] => no [createdDatetime] => 2013-11-19T16:02:25+00:00 )

                    )

                [gatewayToken] => 
                [gatewayAccount] => 
                [ccFirstName] => 
                [ccLastName] => Cage
                [ccCompany] => 
                [ccCountry] => USA
                [ccAddress] => 300 W. Hillside Dr.
                [ccCity] => Bloomington
                [ccState] => IN
                [ccZip] => 47403
                [ccType] => 
                [ccLastFour] => 
                [ccExpirationDate] => 2014-12-31T00:00:00+00:00
                [ccEmail] => 
                [cancelType] => 
                [cancelReason] => 
                [canceledDatetime] => 
                [createdDatetime] => 2014-04-25T15:36:42+00:00
                [invoices] => Array
                    (
                        [66b2873a-cc8f-11e3-82b4-005056a548e6] => Array
                            (
                                [id] => 66b2873a-cc8f-11e3-82b4-005056a548e6
                                [number] => 353
                                [type] => subscription
                                [vatRate] => 
                                [billingDatetime] => 2014-05-25T15:36:42+00:00
                                [paidTransactionId] => 
                                [createdDatetime] => 2014-04-25T15:36:42+00:00
                                [charges] => Array
                                    (
                                        [SALESFORCE_2_RECURRING] => Array
                                            (
                                                [0] => Array
                                                    (
                                                        [id] => 
                                                        [code] => SALESFORCE_2_RECURRING
                                                    )

                                                [type] => recurring
                                                [quantity] => 1
                                                [eachAmount] => 16.00
                                                [description] => 
                                                [createdDatetime] => 2014-05-25T15:36:42+00:00
                                            )
                                    )
                            )
                    )
            )
    )
  1. Support Staff 1 Posted by Marc Guyer on 26 Apr, 2014 04:22 PM

    Marc Guyer's Avatar

    The technical reason for the billing information not showing up in the GUI is because the billing information is not complete. Specifically, the card itself isn't saved. I see some validation failures in the log that show some attempts to update that customer's subscription with payment information.

  2. 2 Posted by Ben Serrette on 28 Apr, 2014 01:18 PM

    Ben Serrette's Avatar

    So, the information /is/ being saved, but we cannot access it because it is incomplete? Is there a way to manually change what is there via the gui or will this need to be changed via the API?

  3. Support Staff 3 Posted by Marc Guyer on 28 Apr, 2014 01:39 PM

    Marc Guyer's Avatar

    Partially saved, yes. Since it's not complete it can't be considered valid. All of the billing information is logically one block since it's all tied together for payment. For example, if the billing address is not the correct one for the card, then it can't be relied upon. That's why it's not displayed in the GUI.

    I consider the partial save when there's a validation error to be a bug of sorts. I've registered a ticket for that.

  4. 4 Posted by Ben Serrette on 28 Apr, 2014 01:43 PM

    Ben Serrette's Avatar

    Ok. I'll find a work around for my case in the meantime. Thanks for the info.

  5. Support Staff 5 Posted by Marc Guyer on 28 Apr, 2014 03:01 PM

    Marc Guyer's Avatar

    Sure Ben. If you need to confirm that the billing info is "complete", rely on the existence of subscription>gatewayToken.

  6. Marc Guyer closed this discussion on 28 Apr, 2014 03:01 PM.

  7. Marc Guyer closed this discussion on 12 May, 2015 07:00 PM.

Discussions are closed to public comments.
If you need help with Cheddar please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

28 Mar, 2024 10:45 PM
24 Jan, 2024 08:33 AM
11 Jan, 2024 07:13 AM
30 Nov, 2023 02:07 AM
22 Nov, 2023 08:41 AM