Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8165417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:31:54+00:00 2026-06-06T19:31:54+00:00

Right now, I’m programming a controller for a donation system that uses Payconnect and

  • 0

Right now, I’m programming a controller for a donation system that uses Payconnect and PayPal.

For testing purposes, I want to create a sample Payment Processor Connection object using ‘new pymt__Processor_Connection_c’. However, I can’t upsert the connection because a required PaymentConnect setup field (pymt_PaymentConnect_Setup__c) is missing.

I’ve tried creating a new PaymentConnect Settings record and a new PayPal processor connection in the PaymentConnect SalesForce tab, but my SOQL query can’t seem to find it. I suspect this might be because I’m programming in a Sandbox account. If this is the case, then how may I properly set up the pymt__PaymentConnect_Setup__c field in my test processor connection?

My query is:

pymt__Processor_Connection__c connection = [SELECT Id,
   pymt__Test_Mode__c, pymt__Enabled_Card_Types__c
   FROM pymt__Processor_Connection__c
   WHERE pymt__Processor_Id__c = 'PayPal'];

I’m still new to APEX and StackOverflow, so please feel tree to ask for any clarifications or for additional sections of my code.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T19:31:57+00:00Added an answer on June 6, 2026 at 7:31 pm

    I don’t know the PaymentConnect data model terribly well, but it sounds as if in order to create your test conditions you need to create a Processor Connection that is linked to a related parent PaymentConnect Setup record. You have two options here:

    1. Recommended: Improve your understanding of the PaymentConnect data model so that you can setup all the appropriate test data prior to executing your unit tests. This requires creating both a PaymentConnect Setup record and a Connection I suspect.
    2. Less Ideal: Create all of the appropriate configuration data in your Sandbox, through the UI. In your unit tests, in order to actually see that data (and this I suspect is the SOQL problem you hit), you need to add the annotation to see production data:

      @isTest (seeAllData = true)
      

    In version 24 of the Salesforce.com API, production data is isolated from unit tests by default: Isolation of Test Data from Organization Data in Unit Tests. I’m guessing that your unit test is unable to see anything that you’ve created in the Sandbox because you’re on v.24 of the API or higher.

    Again, though, always a more robust test where you are creating all of your configuration data and test conditions yourself.

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Right now I have a script that will get the last five files in
Right now I have a function, in a class that is used to listen
Right now I am using sqlite within a ios application, and I want to
Right now, I have a script which uses PHP's tokenizer to look for certain
Right now I have an application that loads a bunch of thumbnail images into
Right now I've programmed a method for use in a swing program that is
Right now, I only understand that Global indexes on a partitioned table are for
Right now, to be sure I am getting what I want I am using
Right now, I have developed an android app that is available free on the
Right now, I have elements with different z-index , and I want to group

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.