1
0
Files
PayPal-PHP-Server-SDK/doc/models/payment-source-response.md
Dani Kirby de24c9e488 Automated commit message (#9)
Co-authored-by: PayPalServerSDKs <server-sdks@paypal.com>
2024-10-22 09:41:42 -05:00

4.1 KiB

Payment Source Response

The payment source used to fund the payment.

Structure

PaymentSourceResponse

Fields

Name Type Tags Description Getter Setter
card ?CardResponse Optional The payment card to use to fund a payment. Card can be a credit or debit card. getCard(): ?CardResponse setCard(?CardResponse card): void
paypal ?PaypalWalletResponse Optional The PayPal Wallet response. getPaypal(): ?PaypalWalletResponse setPaypal(?PaypalWalletResponse paypal): void
bancontact ?BancontactPaymentObject Optional Information used to pay Bancontact. getBancontact(): ?BancontactPaymentObject setBancontact(?BancontactPaymentObject bancontact): void
blik ?BlikPaymentObject Optional Information used to pay using BLIK. getBlik(): ?BlikPaymentObject setBlik(?BlikPaymentObject blik): void
eps ?EpsPaymentObject Optional Information used to pay using eps. getEps(): ?EpsPaymentObject setEps(?EpsPaymentObject eps): void
giropay ?GiropayPaymentObject Optional Information needed to pay using giropay. getGiropay(): ?GiropayPaymentObject setGiropay(?GiropayPaymentObject giropay): void
ideal ?IdealPaymentObject Optional Information used to pay using iDEAL. getIdeal(): ?IdealPaymentObject setIdeal(?IdealPaymentObject ideal): void
mybank ?MybankPaymentObject Optional Information used to pay using MyBank. getMybank(): ?MybankPaymentObject setMybank(?MybankPaymentObject mybank): void
p24 ?P24PaymentObject Optional Information used to pay using P24(Przelewy24). getP24(): ?P24PaymentObject setP24(?P24PaymentObject p24): void
sofort ?SofortPaymentObject Optional Information used to pay using Sofort. getSofort(): ?SofortPaymentObject setSofort(?SofortPaymentObject sofort): void
trustly ?TrustlyPaymentObject Optional Information needed to pay using Trustly. getTrustly(): ?TrustlyPaymentObject setTrustly(?TrustlyPaymentObject trustly): void
applePay ?ApplePayPaymentObject Optional Information needed to pay using ApplePay. getApplePay(): ?ApplePayPaymentObject setApplePay(?ApplePayPaymentObject applePay): void
googlePay ?GooglePayWalletResponse Optional Google Pay Wallet payment data. getGooglePay(): ?GooglePayWalletResponse setGooglePay(?GooglePayWalletResponse googlePay): void
venmo ?VenmoWalletResponse Optional Venmo wallet response. getVenmo(): ?VenmoWalletResponse setVenmo(?VenmoWalletResponse venmo): void

Example (as JSON)

{
  "card": {
    "name": "name6",
    "last_digits": "last_digits0",
    "brand": "RUPAY",
    "available_networks": [
      "SYNCHRONY"
    ],
    "type": "UNKNOWN"
  },
  "paypal": {
    "email_address": "email_address0",
    "account_id": "account_id4",
    "account_status": "VERIFIED",
    "name": {
      "given_name": "given_name2",
      "surname": "surname8"
    },
    "phone_type": "FAX"
  },
  "bancontact": {
    "name": "name0",
    "country_code": "country_code0",
    "bic": "bic2",
    "iban_last_chars": "iban_last_chars8",
    "card_last_digits": "card_last_digits4"
  },
  "blik": {
    "name": "name2",
    "country_code": "country_code2",
    "email": "email4",
    "one_click": {
      "consumer_reference": "consumer_reference2"
    }
  },
  "eps": {
    "name": "name6",
    "country_code": "country_code6",
    "bic": "bic8"
  }
}