Comments (2)
Please see my PR for a simple addition that makes this possible
#22053
from fastlane.
You can do this manually by doing the following...
type = Spaceship::Portal::Certificate::CERTIFICATE_TYPE_IDS.key(Spaceship::Portal::Certificate::ApplePay)
certificate = Spaceship::Portal.client.create_certificate!(type, csr, merchant_id)
require 'spaceship'
require 'openssl'
csr_path = '/PATH/TO/stripe.certSigningRequest'
csr_content = File.read(csr_path)
csr = OpenSSL::X509::Request.new(csr_content)
# Login to Apple Developer account
Spaceship::Portal.login('your_apple_id', 'your_password')
# Select the team if you're part of multiple teams
team_id = 'your_team_id' # Replace with your actual team ID
Spaceship::Portal.client.team_id = team_id
`fastlane produce merchant -o merchant.com.example.production -r "Example Merchant Production"`
`fastlane produce associate_merchant -a com.krausefx.app merchant.com.example.production`
# Verify that the merchant ID exists
merchant_id = Spaceship.merchant.find("merchant.com.example.production")
if merchant_id?
puts "Merchant not found"
exit
else
puts "Merchant ID found: #{app.app_id}"
end
# Attempt to create the Apple Pay certificate
begin
type = Spaceship::Portal::Certificate::CERTIFICATE_TYPE_IDS.key(Spaceship::Portal::Certificate::ApplePay)
certificate = Spaceship::Portal.client.create_certificate!(type, csr, merchant_id)
puts "Certificate created: #{certificate.id}"
rescue Spaceship::UnexpectedResponse => e
puts "Failed to create certificate: #{e.message}"
end
cert_content = Spaceship::Portal.client.download_certificate(certificate['certificateId'], certificate['certificateTypeDisplayId'])
cert_file_path = '/PATH/TO//Downloads/apple_pay_certificate.cer' File.write(cert_file_path, cert_content)
puts "Certificate saved to #{cert_file_path}"
from fastlane.
Related Issues (20)
- set_changelog results in localization error HOT 1
- Flutter + Snapshot ? HOT 2
- fastfile.swift issue HOT 1
- fastfile.swift issue // Cannot convert value of type 'String' to expected argument type 'OptionalConfigValue<String?>' HOT 1
- android - [!] Invalid request (Google::Apis::ClientError) HOT 4
- iOS - base64 encoded key parsing error HOT 1
- [deliver] (Duplicate) When there is at least 1 framed screenshot, all non-framed screenshot files are skipped, even for devices that have no framed screenshots HOT 1
- Unable to assign Groups using pilot HOT 1
- Can't use API Keys with notarize HOT 2
- Error with Manual Code Signing Using Fastlane After Installing Third-Party Package in Xcode
- Failed to sign application using multiple provisions HOT 2
- Deprecated `--path` argument to SwiftLint is being retired, which may break fastlane's SwiftLint action HOT 1
- Cannot upload changelogs HOT 3
- [match] Imported tvOS provisioning profile generated name does not match the one expected when retrieving profiles for building the tvOS app
- delete_keychain result unexpected behavior when setting both KEYCHAIN_PATH and KEYCHAIN_NAME HOT 1
- 🐛 Fastlane `sh` with `log:false` replacing `step_name` to `Step: shell command` instead of step_name parameter
- Homebrue and rubygems fastlane versions not matching
- [scan] Tests show as passing if app crashes during test
- Tests written in Swift Testing framework are not running
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastlane.