使用Paypal的PHP API快速结账无法在没有帐户的情况下结账

时间:2014-04-26 16:27:16

标签: paypal express-checkout

我正在尝试使用Paypal的PHP api中的SetExpressCheckout调用来测试“Pay without Paypal Account”,但我指向的Paypal页面只能选择使用帐户付款或创建帐户 - 如果没有帐户,则无法支付费用。

我已经使用以下说明配置了我正在测试的沙盒卖家帐户,不要求用户拥有帐户:https://www.paypal-community.com/t5/Merchant-services-Archive/Paypal-account-optional/td-p/233270

在我调用$ paypalService-> SetExpressCheckout()方法之前,这是setECReq对象的打印输出:

    PayPal\PayPalAPI\SetExpressCheckoutReq Object
(
    [SetExpressCheckoutRequest] => PayPal\PayPalAPI\SetExpressCheckoutRequestType Object
        (
            [SetExpressCheckoutRequestDetails] => PayPal\EBLBaseComponents\SetExpressCheckoutRequestDetailsType Object
                (
                    [OrderTotal] => 
                    [ReturnURL] => (stack overflow won't let me post links)/dg/cart/checkout/paypal/express/review
                    [CancelURL] => (stack overflow won't let me post links)/dg/cart/checkout/paypal/express/cancel
                    [TrackingImageURL] => 
                    [giropaySuccessURL] => 
                    [giropayCancelURL] => 
                    [BanktxnPendingURL] => 
                    [Token] => 
                    [MaxAmount] => 
                    [OrderDescription] => 
                    [Custom] => 
                    [InvoiceID] => 
                    [ReqConfirmShipping] => 0
                    [ReqBillingAddress] => 
                    [BillingAddress] => 
                    [NoShipping] => 0
                    [AddressOverride] => 0
                    [LocaleCode] => 
                    [PageStyle] => 
                    [cppheaderimage] => 
                    [cppheaderbordercolor] => 000000
                    [cppheaderbackcolor] => 000000
                    [cpppayflowcolor] => 00FF00
                    [cppcartbordercolor] => EEEEEE
                    [cpplogoimage] => (stack overflow won't let me post links)/dg/assets/img/paypal_logo2.gif
                    [Address] => 
                    [PaymentAction] => 
                    [SolutionType] => 
                    [LandingPage] => 
                    [BuyerEmail] => 
                    [ChannelType] => 
                    [BillingAgreementDetails] => Array
                        (
                            [0] => PayPal\EBLBaseComponents\BillingAgreementDetailsType Object
                                (
                                    [BillingType] => MerchantInitiatedBillingSingleAgreement
                                    [BillingAgreementDescription] => The customer pays for the products, and buyer sends them.
                                    [PaymentType] => 
                                    [BillingAgreementCustom] => 
                                )

                        )

                    [PromoCodes] => 
                    [PayPalCheckOutBtnType] => 
                    [ProductCategory] => 
                    [ShippingMethod] => 
                    [ProfileAddressChangeDate] => 
                    [AllowNote] => 1
                    [FundingSourceDetails] => 
                    [BrandName] => Dusty Gamble | Glass Art
                    [CallbackURL] => 
                    [EnhancedCheckoutData] => 
                    [OtherPaymentMethods] => 
                    [BuyerDetails] => 
                    [PaymentDetails] => Array
                        (
                            [0] => PayPal\EBLBaseComponents\PaymentDetailsType Object
                                (
                                    [OrderTotal] => PayPal\CoreComponentTypes\BasicAmountType Object
                                        (
                                            [currencyID] => USD
                                            [value] => 45.00
                                        )

                                    [ItemTotal] => PayPal\CoreComponentTypes\BasicAmountType Object
                                        (
                                            [currencyID] => USD
                                            [value] => 42.00
                                        )

                                    [ShippingTotal] => PayPal\CoreComponentTypes\BasicAmountType Object
                                        (
                                            [currencyID] => USD
                                            [value] => 3.00
                                        )

                                    [HandlingTotal] => PayPal\CoreComponentTypes\BasicAmountType Object
                                        (
                                            [currencyID] => USD
                                            [value] => 0.00
                                        )

                                    [TaxTotal] => 
                                    [OrderDescription] => 
                                    [Custom] => 
                                    [InvoiceID] => 
                                    [ButtonSource] => PayPal_SDK
                                    [NotifyURL] => 
                                    [ShipToAddress] => 
                                    [MultiShipping] => 
                                    [FulfillmentReferenceNumber] => 
                                    [FulfillmentAddress] => 
                                    [PaymentCategoryType] => 
                                    [ShippingMethod] => 
                                    [ProfileAddressChangeDate] => 
                                    [PaymentDetailsItem] => Array
                                        (
                                            [0] => PayPal\EBLBaseComponents\PaymentDetailsItemType Object
                                                (
                                                    [Name] => Object #883 - Synapse
                                                    [Number] => 
                                                    [Quantity] => 1
                                                    [Tax] => 
                                                    [Amount] => PayPal\CoreComponentTypes\BasicAmountType Object
                                                        (
                                                            [currencyID] => USD
                                                            [value] => 42.00
                                                        )

                                                    [EbayItemPaymentDetailsItem] => 
                                                    [PromoCode] => 
                                                    [ProductCategory] => 
                                                    [Description] => 
                                                    [ItemWeight] => 
                                                    [ItemLength] => 
                                                    [ItemWidth] => 
                                                    [ItemHeight] => 
                                                    [ItemURL] => 
                                                    [EnhancedItemData] => 
                                                    [ItemCategory] => Physical
                                                )

                                        )

                                    [InsuranceTotal] => PayPal\CoreComponentTypes\BasicAmountType Object
                                        (
                                            [currencyID] => USD
                                            [value] => 0.00
                                        )

                                    [ShippingDiscount] => 
                                    [InsuranceOptionOffered] => 
                                    [AllowedPaymentMethod] => 
                                    [EnhancedPaymentData] => 
                                    [SellerDetails] => 
                                    [NoteText] => 
                                    [TransactionId] => 
                                    [PaymentAction] => Sale
                                    [PaymentRequestID] => 
                                    [OrderURL] => 
                                    [SoftDescriptor] => 
                                    [BranchLevel] => 
                                    [OfferDetails] => 
                                    [Recurring] => 
                                    [PaymentReason] => 
                                )

                        )

                    [FlatRateShippingOptions] => 
                    [CallbackTimeout] => 
                    [CallbackVersion] => 
                    [CustomerServiceNumber] => 
                    [GiftMessageEnable] => 
                    [GiftReceiptEnable] => 
                    [GiftWrapEnable] => 
                    [GiftWrapName] => 
                    [GiftWrapAmount] => 
                    [BuyerEmailOptInEnable] => 
                    [SurveyEnable] => 
                    [SurveyQuestion] => 
                    [SurveyChoice] => 
                    [TotalType] => 
                    [NoteToBuyer] => 
                    [Incentives] => 
                    [ReqInstrumentDetails] => 
                    [ExternalRememberMeOptInDetails] => 
                    [FlowControlDetails] => 
                    [DisplayControlDetails] => 
                    [ExternalPartnerTrackingDetails] => 
                    [CoupledBuckets] => 
                )

            [DetailLevel] => 
            [ErrorLanguage] => 
            [Version] => 
        )

)

0 个答案:

没有答案